X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=n2vc%2Fn2vc_juju_conn.py;fp=n2vc%2Fn2vc_juju_conn.py;h=015b237335cc5ee0cb0c59450b38951192815b32;hb=584541c511a146bccd8b74492c1e5eab23f65c76;hp=6e2e9d4b6573b905fde75dc0d643c945f3a79588;hpb=ef97868ad5cd90e5da812ceed1a0467b1c8f705b;p=osm%2FN2VC.git diff --git a/n2vc/n2vc_juju_conn.py b/n2vc/n2vc_juju_conn.py index 6e2e9d4..015b237 100644 --- a/n2vc/n2vc_juju_conn.py +++ b/n2vc/n2vc_juju_conn.py @@ -774,15 +774,16 @@ class N2VCJujuConnector(N2VCConnector): # destroy the model # TODO: should this be removed? await self.libjuju.destroy_model( - model_name=model_name, total_timeout=total_timeout + model_name=model_name, + total_timeout=total_timeout, ) else: - # get juju model and observer - controller = await self.libjuju.get_controller() - model = await self.libjuju.get_model(controller, model_name) # destroy the application await self.libjuju.destroy_application( - model=model, application_name=application_name) + model_name=model_name, + application_name=application_name, + total_timeout=total_timeout, + ) except Exception as e: raise N2VCException( message=(