From 74fd75ea33e8ddf246a8c83e3035d6f11b733089 Mon Sep 17 00:00:00 2001 From: Sebastian Gumprich Date: Sun, 22 Oct 2023 18:43:26 +0200 Subject: [PATCH 1/2] fix typos --- src/utils/resources.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/utils/resources.py b/src/utils/resources.py index 69b260334..1720b4890 100644 --- a/src/utils/resources.py +++ b/src/utils/resources.py @@ -61,10 +61,10 @@ class AppResourceManager: try: if todo == "deprovision": # FIXME : i18n, better info strings - logger.info(f"Deprovisionning {name}...") + logger.info(f"Deprovisioning {name}...") old.deprovision(context=context) elif todo == "provision": - logger.info(f"Provisionning {name}...") + logger.info(f"Provisioning {name}...") new.provision_or_update(context=context) elif todo == "update": logger.info(f"Updating {name}...") @@ -90,14 +90,14 @@ class AppResourceManager: # (NB. here we want to undo the todo) if todo == "deprovision": # FIXME : i18n, better info strings - logger.info(f"Reprovisionning {name}...") + logger.info(f"Reprovisioning {name}...") old.provision_or_update(context=context) elif todo == "provision": - logger.info(f"Deprovisionning {name}...") + logger.info(f"Deprovisioning {name}...") new.deprovision(context=context) elif todo == "update": logger.info(f"Reverting {name}...") - old.provision_or_update(context=context) + old.sion_or_update(context=context) except (KeyboardInterrupt, Exception) as e: if isinstance(e, KeyboardInterrupt): logger.error(m18n.n("operation_interrupted")) From 54bc79ed587fc55c467e03e349d9097f56e1118d Mon Sep 17 00:00:00 2001 From: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com> Date: Sun, 22 Oct 2023 18:53:57 +0200 Subject: [PATCH 2/2] Apply suggestions from code review --- src/utils/resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/resources.py b/src/utils/resources.py index 1720b4890..3f9719c39 100644 --- a/src/utils/resources.py +++ b/src/utils/resources.py @@ -97,7 +97,7 @@ class AppResourceManager: new.deprovision(context=context) elif todo == "update": logger.info(f"Reverting {name}...") - old.sion_or_update(context=context) + old.provision_or_update(context=context) except (KeyboardInterrupt, Exception) as e: if isinstance(e, KeyboardInterrupt): logger.error(m18n.n("operation_interrupted"))