diff options
-rw-r--r-- | xlators/features/marker/utils/syncdaemon/configinterface.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/configinterface.py b/xlators/features/marker/utils/syncdaemon/configinterface.py index 8bcfbcb39b6..fce45a2bb07 100644 --- a/xlators/features/marker/utils/syncdaemon/configinterface.py +++ b/xlators/features/marker/utils/syncdaemon/configinterface.py @@ -112,11 +112,14 @@ class GConffile(object): self.update_to(d) if opt: opt = norm(opt) - d = {opt: d.get(opt, "")} - for k, v in d.iteritems(): - if k == '__name__': - continue - print("%s: %s" % (k, v)) + v = d.get(opt) + if v: + print v + else: + for k, v in d.iteritems(): + if k == '__name__': + continue + print("%s: %s" % (k, v)) def write(self, trfn, opt, *a, **kw): def mergeconf(f): |