vim_config = db_vim.get("config", {})
if command in ("create", "created"):
self.logger.debug("Main config: {}".format(self.main_config.to_dict()))
- if "credentials" or "credentials_base64" in vim_config:
+ if "credentials" in vim_config or "credentials_base64" in vim_config:
self.logger.info("Vim add cloud credentials")
task = asyncio.ensure_future(
self.cloud_credentials.add(params, order_id)
return
elif command == "delete" or command == "deleted":
self.lcm_tasks.cancel(topic, vim_id)
- if "credentials" in vim_config:
+ if "credentials" in vim_config or "credentials_base64" in vim_config:
self.logger.info("Vim remove cloud credentials")
task = asyncio.ensure_future(
self.cloud_credentials.remove(params, order_id)
sys.stdout.flush()
return
elif command in ("edit", "edited"):
- if "credentials" in vim_config:
+ if "credentials" in vim_config or "credentials_base64" in vim_config:
self.logger.info("Vim update cloud credentials")
task = asyncio.ensure_future(
self.cloud_credentials.edit(params, order_id)