Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /usr/bin/chage -M 99999 anand.bhatt ----
STDOUT:
STDERR: chage: user 'anand.bhatt' does not exist in /etc/passwd
---- End output of /usr/bin/chage -M 99999 anand.bhatt ----
Ran /usr/bin/chage -M 99999 anand.bhatt returned 1
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/linux-server-cookbook/recipes/run_commands.rb
26: execute "chage" do
27: command "/usr/bin/chage -M 99999 anand.bhatt"
28: action :run
29: end
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/linux-server-cookbook/recipes/run_commands.rb:26:in `from_file'
execute("chage") do
action [:run]
retries 0
retry_delay 2
default_guard_interpreter :execute
command "/usr/bin/chage -M 99999 anand.bhatt"
backup 5
returns 0
user nil
declared_type :execute
cookbook_name "linux-server-cookbook"
recipe_name "run_commands"
end
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /usr/bin/chage -M 99999 anand.bhatt ----
STDOUT:
STDERR: chage: user 'anand.bhatt' does not exist in /etc/passwd
---- End output of /usr/bin/chage -M 99999 anand.bhatt ----
Ran /usr/bin/chage -M 99999 anand.bhatt returned 1