Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-6528

registry : defined type registry::value does not allow numeric or array values for data

    XMLWordPrintable

    Details

    • Template:
      MODULES Bug Template
    • Acceptance Criteria:
      Hide

      Introduce additional unit tests to reproduce the bug, and new code that demonstrates the code passes

      Show
      Introduce additional unit tests to reproduce the bug, and new code that demonstrates the code passes
    • Epic Link:
    • Team:
      Windows
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      When running a manifest like:

      registry::value { 'DebugPolicies':
        key   => 'HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon',
        value => 'UserEnvDebugLevel',
        data  => 196610,
        type  => 'dword'
      }
      

      As of registry 2.0.0, this generates an error like:

      Error: Evaluation Error: Error while evaluating a Resource Statement, Registry::Value[DebugPolicies]: parameter 'data' expects a value of type Undef or String, got Integer
      

      Note that use of the registry_value type in an equivalent fashion, as in the following, is not impacted:

      registry_value { 'DebugPolicies':
      	path   => 'HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\UserEnvDebugLevel',
      	data  => 196610,
      	type  => 'dword'
      }
      

        Attachments

          Activity

            People

            Assignee:
            ethan Ethan Brown
            Reporter:
            ethan Ethan Brown
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support