From bfdeb6d9fe8c086f0d746da36eefa296cfef1209 Mon Sep 17 00:00:00 2001 From: Alexander Sitnik Date: Thu, 31 Dec 2020 17:17:03 +0300 Subject: [PATCH] fix: fix handling of a new parameter --- mirroroperator/operator.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mirroroperator/operator.py b/mirroroperator/operator.py index 18aee71..a4f114d 100644 --- a/mirroroperator/operator.py +++ b/mirroroperator/operator.py @@ -103,8 +103,9 @@ def safely_eval_env(env_var): ca_certificate_bundle=os.environ.get("CA_CERTIFICATE_BUNDLE"), ) # HOSTESS_DOCKER_REGISTRY is deprecated in favor of DOCKER_REGISTRY - if env_vars.docker_registry != "docker.io": - env_vars.hostess_docker_registry = env_vars.docker_registry + if env_vars["docker_registry"] != "docker.io": + env_vars["hostess_docker_registry"] = env_vars["docker_registry"] + operator = MirrorOperator(env_vars) sleep_time = os.environ.get("SECONDS_BETWEEN_STREAMS", 30)