Commit dec869bc authored by Morten Knutsen's avatar Morten Knutsen

Move logging to after correct index has been set.

parent 3116f4c8
......@@ -203,11 +203,11 @@ class Generator(object):
if not key.startswith("nova/iaas/instances") and not \
key.startswith("nova/iaas/security_group"):
continue
logging.debug("new config index %d", index)
time.sleep(1)
for node in self.etcd_client.read("/nova/iaas", recursive=True).children:
if node.modifiedIndex > index:
index = node.modifiedIndex
logging.debug("new config index %d", index)
self.generate_all()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment