-
Notifications
You must be signed in to change notification settings - Fork 680
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
Add support for suse 11 to service resource #638
Conversation
Systemd.new(inspec, service_ctl) | ||
elsif %w{suse opensuse}.include?(family) | ||
version = inspec.os[:release].to_i | ||
if (%w{ suse opensuse }.include?(family) && version >= 12) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can focus on version checking here. No need to test the family again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chris-rock giving it another try, let me know.
Systemd.new(inspec, service_ctl) | ||
elsif %w{suse opensuse}.include?(family) | ||
if (inspec.os[:release].to_i >= 12) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use if inspec.os[:release].to_i >= 12
to meet our lint guidelines
That addition looks really good now. Also please add |
@chris-rock just checked the changes suggested above |
Thanks @spuranam for this addition |
This PR address issue 627.