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 lint #45

Merged
merged 3 commits into from
Jan 29, 2021
Merged

Fix lint #45

merged 3 commits into from
Jan 29, 2021

Conversation

schurzi
Copy link
Contributor

@schurzi schurzi commented Jan 26, 2021

No description provided.

Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>
Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>
Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>
Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

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

Thank you for the clean up @schurzi

}
only_if { linux_update.updates.length > 0 }
end
only_if { linux_update.updates.length.positive? }
Copy link
Member

Choose a reason for hiding this comment

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

nit: I am not fan of this style, but I assume we want to harmonize it, so its okay.

PRINT_JSON
cmd = @inspec.bash(rhel_updates)
unless cmd.exit_status == 0
unless cmd.exit_status.zero?
Copy link
Member

Choose a reason for hiding this comment

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

nit: similar as above. I am not sure what the value is? its even more characters

@chris-rock chris-rock merged commit cda0d89 into master Jan 29, 2021
@chris-rock chris-rock deleted the fix_lint branch January 29, 2021 10:30
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.

2 participants