From d0c45360b0edd9a72fdfd4d01312d9cd1c28de91 Mon Sep 17 00:00:00 2001 From: Mark Beierl Date: Thu, 20 Jul 2023 14:31:10 +0000 Subject: [PATCH] Update level for activity defn The activity needs to be defined at the class level now Change-Id: I1f98394548ebebe713cb014bec79e3f728373a5e Signed-off-by: Mark Beierl --- osm_lcm/temporal/juju_paas_activities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()): -- 2.25.1