mirror of
https://github.com/inspec/inspec
synced 2024-11-23 21:23:29 +00:00
fix rubocop complaint
This commit is contained in:
parent
3168e4d100
commit
1d99afe623
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue