X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=n2vc%2Fvnf.py;h=28305710d7dc4f44fe1b2749b2c3c78ad93cfc6c;hp=6e4aaf37e8bd013663eb4d03c6dbe766408cdb3f;hb=c4f393e2cc27e8beb337d0058c11f7413f6639f6;hpb=6d84dbd8746388114361e09300697da471de20ca diff --git a/n2vc/vnf.py b/n2vc/vnf.py index 6e4aaf3..2830571 100644 --- a/n2vc/vnf.py +++ b/n2vc/vnf.py @@ -769,11 +769,11 @@ class N2VC: await self.disconnect_model(self.monitors[model_name]) - # Notify the callback that this charm has been removed. self.notify_callback( model_name, application_name, "removed", + "Removing charm {}".format(application_name), callback, *callback_args, ) @@ -819,7 +819,7 @@ class N2VC: # Do not delete the default model. The default model was used by all # Network Services, prior to the implementation of a model per NS. - if ns_uuid.lower() is "default": + if ns_uuid.lower() == "default": return False if not self.authenticated: @@ -832,7 +832,7 @@ class N2VC: try: await self.controller.destroy_models(ns_uuid) - except JujuError as e: + except JujuError: raise NetworkServiceDoesNotExist( "The Network Service '{}' does not exist".format(ns_uuid) )