parameters return from root path (#1701)

This commit is contained in:
Nate Peterson 2018-07-13 03:24:11 -06:00 committed by Terry Cain
commit dcdaca8984
2 changed files with 24 additions and 1 deletions

View file

@ -100,7 +100,7 @@ class SimpleSystemManagerBackend(BaseBackend):
# difference here.
path = path.rstrip('/') + '/'
for param in self._parameters:
if not param.startswith(path):
if path != '/' and not param.startswith(path):
continue
if '/' in param[len(path) + 1:] and not recursive:
continue