--- a/pvl/hosts/config.py Thu Feb 26 18:07:03 2015 +0200
+++ b/pvl/hosts/config.py Thu Feb 26 18:19:09 2015 +0200
@@ -230,7 +230,12 @@
if config.sections:
# this is a top-level section that includes hosts
- log.info("%s: @%s", path, name)
+ if parent:
+ log.info("%s: @%s@%s", path, name, parent)
+
+ name = pvl.dns.join(name, parent)
+ else:
+ log.info("%s: @%s", path, name)
# recurse until we hit a scalar-only section representing a host
for section_name in config.sections:
@@ -314,6 +319,8 @@
# use directory name
parent = os.path.basename(path.rstrip('/'))
+ log.info("%s: @%s", path, parent)
+
for name in os.listdir(path):
file_path = os.path.join(path, name)