diff --git a/app/shared_config_manager/app.py b/app/shared_config_manager/app.py index 90ec862d..a8e15e4f 100644 --- a/app/shared_config_manager/app.py +++ b/app/shared_config_manager/app.py @@ -38,6 +38,9 @@ def _watch_source(): try: for key, source in registry.get_sources().items(): try: + if source.is_master(): + continue + slaves = slave_status.get_source_status(id_=key) need_refresh = False hash_ = "" @@ -48,7 +51,7 @@ def _watch_source(): if "hash" not in slave: need_refresh = True _LOG.warning( - "No hash in the slave '%s ' status for source '%s' -> refresh.", + "No hash in the slave '%s' status for source '%s' -> refresh.", slave.get("hostname"), key, ) diff --git a/app/shared_config_manager/views.py b/app/shared_config_manager/views.py index 1340e735..c7123676 100644 --- a/app/shared_config_manager/views.py +++ b/app/shared_config_manager/views.py @@ -24,6 +24,9 @@ def _is_valid(source: BaseSource) -> bool: if source is None: return False + if source.is_master(): + return True + slaves = slave_status.get_source_status(id_=source.get_id()) if slaves is None: return True