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

    • MODULES Bug Template
    • 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
    • Windows
    • Needs 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support