X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=juju%2Fcontroller.py;h=b3d2ac103af104b07f35de9bb8b01d6ab44c4f07;hb=2a32f7b8c506dfafbe137fbe4da43c66cc3a1079;hp=2bcb2e7184535fb2b76ced05f52c0950a44c77a4;hpb=ca170102476524e17c37d2efac3ce60f6ac6f326;p=osm%2FN2VC.git diff --git a/juju/controller.py b/juju/controller.py index 2bcb2e7..b3d2ac1 100644 --- a/juju/controller.py +++ b/juju/controller.py @@ -103,8 +103,9 @@ class Controller(object): try: ssh_key = await utils.read_ssh_key(loop=self.loop) await utils.execute_process( - 'juju', 'add-ssh-key', '-m', model_name, ssh_key, log=log) - except Exception as e: + 'juju', 'add-ssh-key', '-m', model_name, ssh_key, log=log, + loop=self.loop) + except Exception: log.exception( "Could not add ssh key to model. You will not be able " "to ssh into machines in this model. " @@ -119,6 +120,7 @@ class Controller(object): self.connection.password, self.connection.cacert, self.connection.macaroons, + loop=self.loop, ) return model