From: Mark Beierl Date: Thu, 20 Jul 2023 14:31:10 +0000 (+0000) Subject: Update level for activity defn X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F06%2F13706%2F1;p=osm%2FLCM.git Update level for activity defn The activity needs to be defined at the class level now Change-Id: I1f98394548ebebe713cb014bec79e3f728373a5e Signed-off-by: Mark Beierl --- diff --git a/osm_lcm/temporal/juju_paas_activities.py b/osm_lcm/temporal/juju_paas_activities.py index dfa3115..7714470 100644 --- a/osm_lcm/temporal/juju_paas_activities.py +++ b/osm_lcm/temporal/juju_paas_activities.py @@ -272,8 +272,8 @@ class CharmInfoUtils: return None, None +@activity.defn(name=RemoveCharm.__name__) class RemoveCharmImpl(RemoveCharm): - @activity.defn(name=RemoveCharm.__name__) async def __call__(self, activity_input: RemoveCharm.Input) -> None: app_name = activity_input.application_name model_name = activity_input.model_name @@ -295,8 +295,8 @@ class RemoveCharmImpl(RemoveCharm): ) +@activity.defn(name=CheckCharmIsRemoved.__name__) class CheckCharmIsRemovedImpl(CheckCharmIsRemoved): - @activity.defn(name=CheckCharmIsRemoved.__name__) async def __call__(self, activity_input: CheckCharmIsRemoved.Input) -> None: controller = await self.juju_controller._get_controller(activity_input.vim_uuid) if activity_input.model_name not in (await controller.list_models()):