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

bugfix: only skip regkey if required #364

Merged
merged 1 commit into from
Jan 15, 2016
Merged

Conversation

chris-rock
Copy link
Contributor

No description provided.

@chris-rock chris-rock added the Type: Bug Feature not working as expected label Jan 14, 2016
@@ -26,7 +26,8 @@ def initialize(name, reg_key = nil)
reg_key ||= name
@name = name
@reg_key = reg_key
skip_resource 'The `registry_key` resource is not supported on your OS yet.'

return skip_resource 'The `registry_key` resource is not supported on your OS yet.' if inspec.os[:family] != 'windows'
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe inspec.os.windows?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, for sure, thats how you write it. looks like my head is low on sugar :-)

@arlimus
Copy link
Contributor

arlimus commented Jan 15, 2016

Great catch, cheers @chris-rock !

arlimus added a commit that referenced this pull request Jan 15, 2016
bugfix: only skip regkey if required
@arlimus arlimus merged commit c0ba2c6 into master Jan 15, 2016
@arlimus arlimus deleted the chris-rock/fix-regkey branch January 15, 2016 03:49
@chris-rock chris-rock added this to the 0.9.9 milestone Jan 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Feature not working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants