Add model name to bundle log message

This simply adds the model name to the log message that the bundle
is being deployed to so the user can see which model got which bundle.
This commit is contained in:
Alex Kavanagh
2018-09-20 10:45:33 +02:00
parent ef425b975d
commit a2aeba613d

View File

@@ -220,7 +220,8 @@ def deploy_bundle(bundle, model):
:param model: Name of model to deploy bundle in
:type model: str
"""
logging.info("Deploying bundle {}".format(bundle))
logging.info("Deploying bundle {} on to {} model"
.format(bundle, model))
cmd = ['juju', 'deploy', '-m', model, bundle]
with tempfile.TemporaryDirectory() as tmpdirname:
for overlay in render_overlays(bundle, tmpdirname):