scripts/func-list-vms-per-host |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit f785381f987bb7927899b4d4d2fbb549897d7a94
Author: Seth Vidal <[email protected]>
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)
 


_______________________________________________
Func-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/func-list

Reply via email to