Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(MODULES-8439) Fix sqlserver_instances custom fact #314

Merged
merged 1 commit into from May 30, 2019

Conversation

carabasdaniel
Copy link
Contributor

No description provided.

Copy link
Contributor

@michaeltlombardi michaeltlombardi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Sending through adhoc now, will merge when it passes!

  Prior to this commit, when a registry key in HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SQL Server\Instance Names was missing the key about the current version the custom fact sqlserver_instances would throw an error message similar to this: 2019-01-06 14:55:09 -0500 Facter (err): error while resolving custom fact "sqlserver_instances": Failed to open registry key 'HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SQL Server\MSRS11.@SharePoint\MSSQLServer\CurrentVersion': The system cannot find the file specified.

  This commit adds a check before trying to open the version information registry key.
@michaeltlombardi
Copy link
Contributor

Passed all of Adhoc!

@michaeltlombardi michaeltlombardi merged commit d5b7731 into puppetlabs:master May 30, 2019
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.

None yet

3 participants