fix rubocop complaint

This commit is contained in:
Jeremy W. Chalfant 2015-12-21 09:29:55 -06:00 committed by Christoph Hartmann
parent fbe79d1bc4
commit 5a6b1bbddf

View file

@ -287,14 +287,14 @@ class AixUser < UnixUser
user = lsuser.stdout.chomp.split("\n").last.split(':')
{
home: user[1],
home: user[1],
shell: user[2],
}
end
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