rubocop is nuts

This commit is contained in:
Jeremy W. Chalfant 2015-12-23 14:39:42 -06:00 committed by Christoph Hartmann
parent 88656c9ea8
commit bbed0e7164
2 changed files with 3 additions and 2 deletions

View file

@ -188,7 +188,7 @@ class SrcMstr < ServiceManager
private
# #rubocop:disable Style/TrailingComma
# rubocop:disable Style/TrailingComma
def enabled_rc_tcpip?
if inspec.command(
"grep -v ^# /etc/rc.tcpip | grep 'start ' | grep -Eq '(/{0,1}| )#{@name} '"

View file

@ -292,9 +292,10 @@ class AixUser < UnixUser
}
end
# rubocop:disable Style/TrailingComma
def credentials(username)
cmd = inspec.command(
"lssec -c -f /etc/security/user -s #{username} -a minage -a maxage -a pwdwarntime",
"lssec -c -f /etc/security/user -s #{username} -a minage -a maxage -a pwdwarntime"
)
return nil if cmd.exit_status != 0