diff --git a/Dockerfile b/Dockerfile index 27ab273a240d0b2331f4f573d7ebb0f05c2be2f0..ea19e3dd7363ea062b98ce4e2ee0325321cfa54a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,5 +41,5 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ python3-pip \ tox -ENV LC_ALL C.UTF-8 -ENV LANG C.UTF-8 +ENV LC_ALL=C.UTF-8 +ENV LANG=C.UTF-8 diff --git a/NG-RO/osm_ng_ro/monitor.py b/NG-RO/osm_ng_ro/monitor.py index 34af39ec601d5c8b9d8287e5d8c5f8453ca395ca..8099eb98c666c78771645396858784cc5a9bf497 100644 --- a/NG-RO/osm_ng_ro/monitor.py +++ b/NG-RO/osm_ng_ro/monitor.py @@ -900,6 +900,8 @@ def start_monitoring(config: dict): instance = MonitorVms(config) period = instance.refresh_config.active instance.run() + if period == -1: + period = 10 * 24 * 60 * 60 # 10 days (big enough) monitoring_task = threading.Timer(period, start_monitoring, args=(config,)) monitoring_task.start()