-
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
Fix iptables on CentOS6 + more tests for iptables (plus small code improvements) #442
Conversation
srenatus
commented
Feb 9, 2016
- unit tests: +1 test case including a comment
- integration tests: haven't been there before
end | ||
|
||
def retrieve_rules | ||
return @iptables_cache if defined?(@iptables_cache) | ||
return @iptables_cache if @iptables_cache |
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.
although ruby implicitly does the right thing, using defined?
on a variable that has not been defined is better at expressing why this line is used
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.
ok reverted :)
this is not broken; but it should stay not broken ;)
centos puts quotes where ubuntu drops them
As it turns out, some of the lines on CentOS 6 had a trailing space in it. Fixes #420.
_Only_ CentOS 6 does not strip the quotes from comments.
Awesome improvements, cheers @srenatus 👍 :) ! |
Fix iptables on CentOS6 + more tests for iptables (plus small code improvements)