+
+ if opts.ls:
+ if type(conf) not in (dict, list):
+ raise invirt_exception(
+ '%s: node has no children (atomic datum)' % progress)
+ if type(conf) == list:
+ for i in xrange(len(conf)):
+ print i
+ else:
+ for k in conf.iterkeys():
+ print k
+ else:
+ if type(conf) not in (dict, list):
+ print conf
+ else:
+ import yaml
+ yaml.safe_dump(conf, stdout, default_flow_style=False)