X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=n2vc%2Fn2vc_juju_conn.py;h=c09c263e31f6ba4fbc7236ef5467b9c6917355d1;hp=d31c169932cbabffdaed24c250bfb66b34c931fa;hb=561202994dc290e20a5f15ae8ffd07f20fb84069;hpb=4c5efa8389c2c2da64364624ae4a8d8e4bf0ded5 diff --git a/n2vc/n2vc_juju_conn.py b/n2vc/n2vc_juju_conn.py index d31c169..c09c263 100644 --- a/n2vc/n2vc_juju_conn.py +++ b/n2vc/n2vc_juju_conn.py @@ -794,15 +794,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=(