mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
Update Resource documentation for Users Resource (#2954)
The `shell` matcher have to be `shells` and expects an array. Wrong: `its('shell') { should eq "/sbin/nologin" }` Got error: ``` × Users with username =~ /stockservice-.*/ shell undefined method 'shell' for Users with username =~ /stockservice-.*/:#<Class:0x000055c2471fa900> Did you mean? shells ``` Correct: its('shells') { should eq ["/sbin/nologin"] } I think it's an documentation mistake. ----------------------------------------- $ inspec --version 2.1.43 Signed-off-by: Axel Kummer <axel.kummer@netresearch.de>
This commit is contained in:
parent
6428abfd4e
commit
923f5a9e56
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ where `0` represents the maximum number of days.
|
|||
|
||||
The `shell` matcher tests the path to the default shell for the user:
|
||||
|
||||
its('shell') { should eq '/bin/bash' }
|
||||
its('shells') { should eq ['/bin/bash'] }
|
||||
|
||||
### uid
|
||||
|
||||
|
|
Loading…
Reference in a new issue