projects
/
invirt/packages/invirt-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
just read the master configuration if the cache refresh fails
[invirt/packages/invirt-base.git]
/
files
/
usr
/
sbin
/
invirt-getconf
diff --git
a/files/usr/sbin/invirt-getconf
b/files/usr/sbin/invirt-getconf
index
1976dbc
..
4721212
100755
(executable)
--- a/
files/usr/sbin/invirt-getconf
+++ b/
files/usr/sbin/invirt-getconf
@@
-67,7
+67,8
@@
def main(argv):
if opts.ls:
if type(conf) not in (dict, list):
raise invirt_exception(
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
if type(conf) == list:
for i in xrange(len(conf)):
print i
@@
-79,7
+80,8
@@
def main(argv):
print conf
else:
import yaml
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
except invirt_exception, ex:
print >> stderr, ex
return 1