[fix] hook_exec / subprocess.Popen explodes if you feed non-string values in env variables

This commit is contained in:
Alexandre Aubin 2021-08-19 18:14:15 +02:00
parent 1f7faabc30
commit 3c07e55017

View file

@ -1233,7 +1233,7 @@ def app_remove(operation_logger, app, purge=False):
env_dict["YNH_APP_INSTANCE_NAME"] = app
env_dict["YNH_APP_INSTANCE_NUMBER"] = str(app_instance_nb)
env_dict["YNH_APP_MANIFEST_VERSION"] = manifest.get("version", "?")
env_dict["YNH_APP_PURGE"] = purge
env_dict["YNH_APP_PURGE"] = str(purge)
operation_logger.extra.update({"env": env_dict})
operation_logger.flush()