Skip to content

Conversation

@joshcooper
Copy link
Contributor

Previously, autorequiring would not add relationships when resources mix
short and long forms of the root key, e.g. hklm and hkey_local_machine. It
also did not handle different cases, hklm vs HKLM.

This commit ensures that we always create a canonical path for the
KeyPath and ValuePath, which always use the downcased root key name.
In the process, the ascend logic was greatly simplified.

This commit does not fix general case-insensitivity in key and value
names, e.g. so hklm\Software and hklm\software are still seen as different
resources. This will be addressed in a separate commit.

Previously, autorequiring would not add relationships when resources mix
short and long forms of the root key, e.g. hklm and hkey_local_machine. It
also did not handle different cases, hklm vs HKLM.

This commit ensures that we always create a canonical path for the
`KeyPath` and `ValuePath`, which always use the downcased root key name.
In the process, the ascend logic was greatly simplified.

This commit does not fix general case-insensitivity in key and value
names, e.g. so hklm\Software and hklm\software are still seen as different
resources. This will be addressed in a separate commit.
jeffmccune pushed a commit that referenced this pull request Apr 21, 2012
Fix autorequiring when using different root key forms
@jeffmccune jeffmccune merged commit 4d24563 into puppetlabs:master Apr 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants