X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=n2vc%2Flibjuju.py;h=b0034534168f8ee641ce895d856b4bc4c5b1dd3e;hb=9831d7e8205bce462a669a8cc2b3dc1a611c924c;hp=7492acc87166921f2de553a454da5237f4cb373b;hpb=2f0692e61e18466f6e7df3e580140f27cad396de;p=osm%2FN2VC.git diff --git a/n2vc/libjuju.py b/n2vc/libjuju.py index 7492acc..b003453 100644 --- a/n2vc/libjuju.py +++ b/n2vc/libjuju.py @@ -598,7 +598,6 @@ class Libjuju: application = self._get_application(model, application_name) if application is not None: - # Checks if the given machine id in the model, # otherwise function raises an error _machine, _series = self._get_machine_info(model, machine_id) @@ -753,7 +752,6 @@ class Libjuju: try: if application_name not in model.applications: - if machine_id is not None: machine, series = self._get_machine_info(model, machine_id) @@ -893,7 +891,6 @@ class Libjuju: return application async def resolve_application(self, model_name: str, application_name: str): - controller = await self.get_controller() model = await self.get_model(controller, model_name) @@ -927,7 +924,6 @@ class Libjuju: await self.disconnect_controller(controller) async def resolve(self, model_name: str): - controller = await self.get_controller() model = await self.get_model(controller, model_name) all_units_active = False