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 inspec.os.arch check in WindowsPkg#info #1102

Closed
wants to merge 1 commit into from
Closed

Fix inspec.os.arch check in WindowsPkg#info #1102

wants to merge 1 commit into from

Conversation

jerryaldrichiii
Copy link
Contributor

This fixes issue #1100

Train returns `64-bit` and not `x86_64` via `wmic os get * /format:list`

This modifies the check for `inspec.os.arch` in `WindowsPkg#info` and
the mocked value of `MockLoader::OPERATING_SYSTEMS[:windows][:arch]`
@chris-rock
Copy link
Contributor

@jerryaldrichiii Thanks for the fix. What do you think of fixing this at the root in train? I would prefer to convert the original values into our InSpec values here: https://github.com/chef/train/blob/master/lib/train/extras/os_detect_windows.rb#L53

@chris-rock
Copy link
Contributor

Thanks @jerryaldrichiii for this PR, I am going to close this PR in favor of your PR in train inspec/train#151

@chris-rock chris-rock closed this Sep 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants