fix typos

This commit is contained in:
Sebastian Gumprich 2023-10-22 18:43:26 +02:00 committed by GitHub
parent 62779ee266
commit 74fd75ea33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,10 +61,10 @@ class AppResourceManager:
try: try:
if todo == "deprovision": if todo == "deprovision":
# FIXME : i18n, better info strings # FIXME : i18n, better info strings
logger.info(f"Deprovisionning {name}...") logger.info(f"Deprovisioning {name}...")
old.deprovision(context=context) old.deprovision(context=context)
elif todo == "provision": elif todo == "provision":
logger.info(f"Provisionning {name}...") logger.info(f"Provisioning {name}...")
new.provision_or_update(context=context) new.provision_or_update(context=context)
elif todo == "update": elif todo == "update":
logger.info(f"Updating {name}...") logger.info(f"Updating {name}...")
@ -90,14 +90,14 @@ class AppResourceManager:
# (NB. here we want to undo the todo) # (NB. here we want to undo the todo)
if todo == "deprovision": if todo == "deprovision":
# FIXME : i18n, better info strings # FIXME : i18n, better info strings
logger.info(f"Reprovisionning {name}...") logger.info(f"Reprovisioning {name}...")
old.provision_or_update(context=context) old.provision_or_update(context=context)
elif todo == "provision": elif todo == "provision":
logger.info(f"Deprovisionning {name}...") logger.info(f"Deprovisioning {name}...")
new.deprovision(context=context) new.deprovision(context=context)
elif todo == "update": elif todo == "update":
logger.info(f"Reverting {name}...") logger.info(f"Reverting {name}...")
old.provision_or_update(context=context) old.sion_or_update(context=context)
except (KeyboardInterrupt, Exception) as e: except (KeyboardInterrupt, Exception) as e:
if isinstance(e, KeyboardInterrupt): if isinstance(e, KeyboardInterrupt):
logger.error(m18n.n("operation_interrupted")) logger.error(m18n.n("operation_interrupted"))