From 0a04adf8f9cacaba734de5f8013dfb1673a58925 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 9 Jun 2021 01:54:29 -0400 Subject: [PATCH] Allow empty sub_paths --- daemon-common/zkhandler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon-common/zkhandler.py b/daemon-common/zkhandler.py index 3f8257bb..359466b4 100644 --- a/daemon-common/zkhandler.py +++ b/daemon-common/zkhandler.py @@ -551,6 +551,8 @@ class ZKSchema(object): else: base_path = self.schema.get('base').get(itype) sub_path = self.schema.get(itype).get('.'.join(ipath)) + if sub_path is None: + sub_path = '' return f'{base_path}/{item}{sub_path}' # Get keys of a schema location