You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When declaring two registry_key resources with the same key path, for example when using the ensure_resources function, catalog compilation will fail if one of the key paths contains a colon and the other doesn't. These should be treated as the same key. For example, managing two registry_key resources whose paths are "HKLM:\Fake\Path" and "HKLM\Fake\Path" will result in an error. But an error will not occur when the two paths are identical, or simply have different casing. The presence of the colon in one of the other results in an error, but it shouldn't, just like a difference in casing shouldn't.
Describe the Bug
When declaring two registry_key resources with the same key path, for example when using the ensure_resources function, catalog compilation will fail if one of the key paths contains a colon and the other doesn't. These should be treated as the same key. For example, managing two registry_key resources whose paths are "HKLM:\Fake\Path" and "HKLM\Fake\Path" will result in an error. But an error will not occur when the two paths are identical, or simply have different casing. The presence of the colon in one of the other results in an error, but it shouldn't, just like a difference in casing shouldn't.
Expected Behavior
The two registry keys should be created.
Steps to Reproduce
ensure_resource(registry_key, { 'HKLM:\Fake\Path' => { ensure => 'present' }, 'HKLM\Fake\Path' => { ensure => 'present' }, })
The text was updated successfully, but these errors were encountered: