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

fix command.exists for mock environments #2056

Merged
merged 1 commit into from
Aug 14, 2017
Merged

Conversation

chris-rock
Copy link
Contributor

…since inspec.os.name was “” instead of unknown. I changed to nil to catch that case.

Signed-off-by: Christoph Hartmann chris@lollyrock.com

@chris-rock chris-rock changed the title In mock setups like inspec check the command resource was executed … fix command.exists for mock environments Aug 10, 2017
@adamleff adamleff added the Type: Bug Feature not working as expected label Aug 10, 2017
…since inspec.os.name was “” instead of unknown. I changed to nil to catch that case.

Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
@chris-rock
Copy link
Contributor Author

Rebased, all green now

@adamleff adamleff merged commit 69cf051 into master Aug 14, 2017
@adamleff adamleff deleted the chris-rock/command-mock branch August 14, 2017 13:03
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

2 participants