|
|
@ -101,6 +101,10 @@ class Cdist: |
|
|
|
kargs['shell'] = True |
|
|
|
kargs['shell'] = True |
|
|
|
log.debug("Shell exec: " + " ".join(*args)) |
|
|
|
log.debug("Shell exec: " + " ".join(*args)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Fail if the script fails |
|
|
|
|
|
|
|
args[0].insert(0,"-e") |
|
|
|
|
|
|
|
print(args) |
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
|
try: |
|
|
|
subprocess.check_call(*args, **kargs) |
|
|
|
subprocess.check_call(*args, **kargs) |
|
|
|
except subprocess.CalledProcessError: |
|
|
|
except subprocess.CalledProcessError: |
|
|
@ -219,7 +223,6 @@ if __name__ == "__main__": |
|
|
|
for host in args.host: |
|
|
|
for host in args.host: |
|
|
|
c = Cdist(host) |
|
|
|
c = Cdist(host) |
|
|
|
c.deploy_to() |
|
|
|
c.deploy_to() |
|
|
|
print(c.list_global_explorers()) |
|
|
|
|
|
|
|
c.cleanup() |
|
|
|
c.cleanup() |
|
|
|
except KeyboardInterrupt: |
|
|
|
except KeyboardInterrupt: |
|
|
|
sys.exit(0) |
|
|
|
sys.exit(0) |
|
|
|