Make sending the output of the dist command configurable
This commit is contained in:
parent
e2682615ae
commit
96dd71bbdd
|
@ -3,4 +3,5 @@
|
||||||
*.pem
|
*.pem
|
||||||
config.json
|
config.json
|
||||||
pool.json
|
pool.json
|
||||||
|
dist.sh
|
||||||
env/
|
env/
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
"ConnectOnCreate": false,
|
"ConnectOnCreate": false,
|
||||||
"HighlightNotifications": true,
|
"HighlightNotifications": true,
|
||||||
"DistEnabled": true,
|
"DistEnabled": true,
|
||||||
|
"SendDistOutput": false,
|
||||||
"Password": "s",
|
"Password": "s",
|
||||||
"Default": {
|
"Default": {
|
||||||
"password": null,
|
"password": null,
|
||||||
|
|
|
@ -471,7 +471,10 @@ class Helper(object):
|
||||||
elif cmd == "dist":
|
elif cmd == "dist":
|
||||||
if config["DistEnabled"]:
|
if config["DistEnabled"]:
|
||||||
rtrn = run(["./dist.sh"], shell=True, stdout=PIPE)
|
rtrn = run(["./dist.sh"], shell=True, stdout=PIPE)
|
||||||
info("Exit code: %s -- Stdout: %s" % (rtrn.returncode, rtrn.stdout))
|
if config["SendDistOutput"]:
|
||||||
|
info("Exit code: %s -- Stdout: %s" % (rtrn.returncode, rtrn.stdout))
|
||||||
|
else:
|
||||||
|
info("Exit code: %s" % rtrn.returncode)
|
||||||
else:
|
else:
|
||||||
failure("The dist command is not enabled")
|
failure("The dist command is not enabled")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue