Make Microsoft.Windows/Registry
idiomatic
#162
Labels
Issue-Enhancement
The issue is a feature or idea
Microsoft.Windows/Registry
idiomatic
#162
Summary of the new feature / enhancement
The resource currently returns the following JSON representations from
registry config get
:For a key that exists:
For a key that doesn't exist:
For a value that exists:
For a value that doesn't exist,
registry config get
errors with exit code3
:Error getting config: The registry key or value name does not exist.: Failed to query registry value
Proposed technical implementation details (optional)
The idiomatic representation of the resource instance should always include the
keyPath
, even when the key doesn't exist. The instance should use the value of the_ensure
property to indicate whether the instance is present or absent.The idiomatic representations for an instance are:
For a key that exists:
For a key that doesn't exist:
For a value that exists:
For a value that doesn't exist:
This would enable users and integrating tools to reason about the state of the instance without having to know that an empty string for
keyPath
indicates that the key doesn't exist.The text was updated successfully, but these errors were encountered: