wallix / awless

A Mighty CLI for AWS
http://awless.io/
Apache License 2.0
4.98k stars 263 forks source link

Stack operations return ExitCode 0 in case of error #150

Closed taraspos closed 6 years ago

taraspos commented 6 years ago

hey, when running One-liner Template Commands in case of error non-0 exit code should be returned

Example:

$ awless update stack name=aaa
update stack name=aaa

Confirm? (y/n): y
    KO  update stack
            update stack: ValidationError: Either Template URL or Template Body must be specified.
            status code: 400, request id: 647b56a0-a928-11e7-84b0-6f3fbb98191a
$ echo $?
0
simcap commented 6 years ago

Indeed, major oversight ;) ... We'll fix that for all runs in 0.1.5 - due in the next days.