Seth Vidal
2011-06-02 17:27:10 UTC
scripts/func-list-vms-per-host | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit f785381f987bb7927899b4d4d2fbb549897d7a94
Author: Seth Vidal <skvidal-rxtnV0ftBwyoClj4AeEUq9i2O/***@public.gmane.org>
Date: Thu Jun 2 13:26:52 2011 -0400
add autostart info to func-list-vms-per-host, if available
diff --git a/scripts/func-list-vms-per-host b/scripts/func-list-vms-per-host
index 24689c5..2fe9d4c 100755
--- a/scripts/func-list-vms-per-host
+++ b/scripts/func-list-vms-per-host
@@ -55,5 +55,8 @@ for (hn, vms) in sorted(results.items()):
for (vm, info) in sorted(vms.items()):
if vm == 'Domain-0':
continue
- print '%s:%s:%s' % (hn, vm, info['state'])
+ autostart = '?'
+ if 'autostart' in info:
+ autostart = info['autostart']
+ print '%s:%s:%s:%s' % (hn, vm, info['state'], autostart)
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit f785381f987bb7927899b4d4d2fbb549897d7a94
Author: Seth Vidal <skvidal-rxtnV0ftBwyoClj4AeEUq9i2O/***@public.gmane.org>
Date: Thu Jun 2 13:26:52 2011 -0400
add autostart info to func-list-vms-per-host, if available
diff --git a/scripts/func-list-vms-per-host b/scripts/func-list-vms-per-host
index 24689c5..2fe9d4c 100755
--- a/scripts/func-list-vms-per-host
+++ b/scripts/func-list-vms-per-host
@@ -55,5 +55,8 @@ for (hn, vms) in sorted(results.items()):
for (vm, info) in sorted(vms.items()):
if vm == 'Domain-0':
continue
- print '%s:%s:%s' % (hn, vm, info['state'])
+ autostart = '?'
+ if 'autostart' in info:
+ autostart = info['autostart']
+ print '%s:%s:%s:%s' % (hn, vm, info['state'], autostart)