From c45804e8c1a5c67ca25ec0cc5a75afd5cedc8c25 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 5 Jul 2021 23:16:39 -0400 Subject: [PATCH] Revert "Return none if a schema path is not found" This reverts commit b1fcf6a4a5c0987ef72de54d96edc8d7bb9e4eda. --- daemon-common/zkhandler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/daemon-common/zkhandler.py b/daemon-common/zkhandler.py index 78603a19..bd32adcc 100644 --- a/daemon-common/zkhandler.py +++ b/daemon-common/zkhandler.py @@ -700,8 +700,7 @@ class ZKSchema(object): base_path = '' sub_path = self.schema.get(itype).get('.'.join(ipath)) if sub_path is None: - # We didn't find the path we're looking for, so we don't want to do anything - return None + sub_path = '' return f'{base_path}/{item}{sub_path}' # Get keys of a schema location