When ansible fails it still reads chaged key

Add changed key failure as well.
Closes-Bug: #1552405

Change-Id: Ic25a57ba20928bee136932cc422713e76dcbe2a1
This commit is contained in:
SamYaple 2016-03-02 20:46:00 +00:00 committed by Sam Yaple
parent 69c7decf49
commit 69c33ce2fe
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ function get_token {
}
function fail_json {
echo '{"failed": true, "msg": "'$1'"}'
echo '{"failed": true, "msg": "'$1'", "changed": true}'
exit 1
}