forked from ungleich-public/cdist
update docs, document exit code bug
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
8fddb1692f
commit
32f878ad00
4 changed files with 79 additions and 30 deletions
|
|
@ -167,10 +167,16 @@ if __name__ == "__main__":
|
|||
commandline()
|
||||
|
||||
except KeyboardInterrupt:
|
||||
exit_code = 2
|
||||
pass
|
||||
|
||||
# FIXME: We always get exit code = 130
|
||||
# exit_code = 2
|
||||
# does not make a difference
|
||||
|
||||
except cdist.Error as e:
|
||||
log.error(e)
|
||||
exit_code = 1
|
||||
|
||||
#sys.exit(20)
|
||||
#print("ok2 %s" % exit_code)
|
||||
sys.exit(exit_code)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue