That's referring to its exit status code, not the actual output toSTDOUT. An exit code of zero is succesful. When you run it from thecommand line what happens when you run 'echo $?' as the next command?If the command succeeds you can tell chef what codes are considered tobe successful with the returns attribute. Try addingreturns: ['']to your bash resource call.Sent from my iPhoneOn May 5, 2013, at 10:29 AM, " "> "< "> > wrote:Hi there, I try to develop a fix for the maven lwrp(https://github.com/opscode-cookbooks/maven) and have run acros this problem:When ein run "kitchen test" in the master of the git repo I see:2013-05-05T15:32:21+00:00] DEBUG: Mixlib::ShellOut::ShellCommandFailed:maven[mysql-connector-java] (maven::test line 6) had an error:Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], butreceived ''The output from the shell command looks like there is actually no error and itis in the middle of execution (actually downloading, since its maven..) whensomethingh goes wrong. If I run the command from outside chef is succeeds. Isthere a way to get a better Error Description from Mixlib:ShellOut? Anybodyseen it failing with status '' ?
Archive powered by MHonArc 2.6.16.