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

use inspec's new unified attributes feature #55

Merged
merged 3 commits into from
Oct 12, 2018

Conversation

chris-rock
Copy link
Member

@chris-rock chris-rock commented Oct 4, 2018

This PR optimizes the profile to define the attribute just once. It is using InSpec's new unified attribute feature inspec/inspec#3176

It also updates the profile to follow InSpec's style guide https://www.inspec.io/docs/reference/style/ where if conditions around controls are discouraged

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

end
end
end
only_if { }
Copy link

Choose a reason for hiding this comment

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

This line needs to go I guess

Copy link
Member Author

Choose a reason for hiding this comment

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

Great catch @alexpop Fixing it now

@chris-rock chris-rock force-pushed the chris-rock/inspec-global-attributes branch from e23acb2 to 9930e72 Compare October 4, 2018 10:10
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
@chris-rock chris-rock force-pushed the chris-rock/inspec-global-attributes branch from 0b1fe32 to 8f46c3a Compare October 4, 2018 10:25
@rarenerd rarenerd merged commit 51a6c8c into master Oct 12, 2018
@chris-rock chris-rock deleted the chris-rock/inspec-global-attributes branch October 12, 2018 11:47
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