Remove logs from schema validation
These are managed entirely by the logging subsystem not by the schema handler due to catch-22's.
This commit is contained in:
parent
fa1d93e933
commit
45f23c12ea
|
@ -777,7 +777,7 @@ class ZKSchema(object):
|
||||||
logger.out(f'Key not found: {self.path(kpath)}', state='w')
|
logger.out(f'Key not found: {self.path(kpath)}', state='w')
|
||||||
result = False
|
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
|
# First read all the subelements of the key class
|
||||||
for child in zkhandler.zk_conn.get_children(self.path(f'base.{elem}')):
|
for child in zkhandler.zk_conn.get_children(self.path(f'base.{elem}')):
|
||||||
# For each key in the schema for that particular elem
|
# For each key in the schema for that particular elem
|
||||||
|
@ -856,7 +856,7 @@ class ZKSchema(object):
|
||||||
data = ''
|
data = ''
|
||||||
zkhandler.zk_conn.create(self.path(kpath), data.encode(zkhandler.encoding))
|
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
|
# First read all the subelements of the key class
|
||||||
for child in zkhandler.zk_conn.get_children(self.path(f'base.{elem}')):
|
for child in zkhandler.zk_conn.get_children(self.path(f'base.{elem}')):
|
||||||
# For each key in the schema for that particular elem
|
# For each key in the schema for that particular elem
|
||||||
|
|
Loading…
Reference in New Issue