if opts.ls:
if type(conf) not in (dict, list):
raise invirt_exception(
- '%s: node has no children (atomic datum)' % progress)
+ '%s: node has no children (atomic datum)'
+ % '.'.join(components))
if type(conf) == list:
for i in xrange(len(conf)):
print i
print conf
else:
import yaml
- yaml.safe_dump(conf, stdout, default_flow_style=False)
+ yaml.dump(conf, stdout,
+ Dumper=yaml.CSafeDumper, default_flow_style=False)
except invirt_exception, ex:
print >> stderr, ex
return 1