mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
rubocop is nuts
This commit is contained in:
parent
f817840d38
commit
221d27423e
2 changed files with 4 additions and 2 deletions
|
@ -188,9 +188,10 @@ class SrcMstr < ServiceManager
|
|||
|
||||
private
|
||||
|
||||
# rubocop:disable Style/TrailingComma
|
||||
def enabled_rc_tcpip?
|
||||
if inspec.command(
|
||||
"grep -v ^# /etc/rc.tcpip | grep 'start ' | grep -Eq '(/{0,1}| )#{@name} '",
|
||||
"grep -v ^# /etc/rc.tcpip | grep 'start ' | grep -Eq '(/{0,1}| )#{@name} '"
|
||||
).exit_status == 0
|
||||
true
|
||||
else
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue