From cc59ddd69d5983b5c05226b8ae4216b2ec6ed70c Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Mon, 19 Mar 2012 13:36:14 -0700 Subject: [PATCH] Show what is being fetched --- devstack/distro.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/devstack/distro.py b/devstack/distro.py index 4761f766..907e8832 100644 --- a/devstack/distro.py +++ b/devstack/distro.py @@ -91,6 +91,8 @@ class Distro(object): run_over_keys = acutal_keys[0:-1] end_key = acutal_keys[-1] quiet = kargs.get('quiet', False) + LOG.debug("Running over keys (%s)" % (", ".join(run_over_keys))) + LOG.debug("End key is (%s)" % (end_key)) for k in run_over_keys: if quiet: root = root.get(k) @@ -98,10 +100,13 @@ class Distro(object): return None else: root = root[k] + end_value = None if not quiet: - return root[end_key] + end_value = root[end_key] else: - return root.get(end_key) + end_value = root.get(end_key) + LOG.debug("Retrieved end command: %s", end_value) + return end_value def known_component(self, name): return name in self._components