X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=n2vc%2Flibjuju.py;h=9f73425257d37c8f8e2bc29e30d2131a3d05c823;hp=5e4bef350cf8b6ec77b4bf9302a65a5dd44d3ddb;hb=60a3a96717d7c36ba7a65573da59a6bc039f5e28;hpb=6d6707771792dd1a917b32c77b40920760aa0a08 diff --git a/n2vc/libjuju.py b/n2vc/libjuju.py index 5e4bef3..9f73425 100644 --- a/n2vc/libjuju.py +++ b/n2vc/libjuju.py @@ -597,7 +597,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) @@ -752,7 +751,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) @@ -808,7 +806,6 @@ class Libjuju: return application async def resolve(self, model_name: str): - controller = await self.get_controller() model = await self.get_model(controller, model_name) all_units_active = False