aboutsummaryrefslogtreecommitdiffstats
path: root/charms/trusty/cassandra/lib/juju-deployer-wrapper.py
blob: bf792f24fa6d67218490a73b8c1849ad08421ef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/python

import subprocess
import sys

# Strip the -W option, as its noise messes with test output.
args = list(sys.argv[1:])
if '-W' in args:
    args.remove('-W')
cmd = ['juju-deployer'] + args
try:
    subprocess.check_output(cmd, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as x:
    sys.stderr.write(x.output)
    sys.exit(x.returncode)