From 45f23c12ea2686978e67c0781258436271bd494f Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 20 Jul 2021 00:00:37 -0400 Subject: [PATCH] Remove logs from schema validation These are managed entirely by the logging subsystem not by the schema handler due to catch-22's. --- daemon-common/zkhandler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon-common/zkhandler.py b/daemon-common/zkhandler.py index 90ed324e..9e7da05b 100644 --- a/daemon-common/zkhandler.py +++ b/daemon-common/zkhandler.py @@ -777,7 +777,7 @@ class ZKSchema(object): logger.out(f'Key not found: {self.path(kpath)}', state='w') result = False - for elem in ['logs', 'node', 'domain', 'network', 'osd', 'pool']: + for elem in ['node', 'domain', 'network', 'osd', 'pool']: # First read all the subelements of the key class for child in zkhandler.zk_conn.get_children(self.path(f'base.{elem}')): # For each key in the schema for that particular elem @@ -856,7 +856,7 @@ class ZKSchema(object): data = '' zkhandler.zk_conn.create(self.path(kpath), data.encode(zkhandler.encoding)) - for elem in ['logs', 'node', 'domain', 'network', 'osd', 'pool']: + for elem in ['node', 'domain', 'network', 'osd', 'pool']: # First read all the subelements of the key class for child in zkhandler.zk_conn.get_children(self.path(f'base.{elem}')): # For each key in the schema for that particular elem