2015-01-09 09:24:42 |
Vincent Ladeuil |
description |
416 # FIXME: if check_output raise an exception, we don't get a proper
417 # output to check for the text below -- vila 2014-02-07 |
def bootstrap():
"""Bootstrap juju."""
args = ['juju', 'bootstrap', '--constraints=mem=1024M']
try:
subprocess.check_output(args)
except subprocess.CalledProcessError as e:
# FIXME: if check_output raise an exception, we don't get a proper
# output to check for the text below -- vila 2014-02-07
if 'environment is already bootstrapped' not in e.output:
raise |
|