dennybaa
5/27/2015 - 7:32 PM

gistfile1.txt

{
    "chef": {
        "failed": false, 
        "stderr": "", 
        "return_code": 0, 
        "succeeded": true, 
        "stdout": "hello world
[2015-05-27T19:28:28+00:00] INFO: Run List is []
[2015-05-27T19:28:28+00:00] INFO: Run List expands to []
[2015-05-27T19:28:28+00:00] INFO: Processing bash[hello] action run ((chef-apply cookbook)::(chef-apply recipe) line 1)
[2015-05-27T19:28:28+00:00] INFO: bash[hello] ran successfully"
    }
}

for:::
        sys.stderr.write('hello world\n')
        exit_code = shell.shell_out(command)
        sys.exit(exit_code)