2 commits - func/minion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 func/minion/modules/virt.py |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 13438f030ff985b0e2431bccdca87845028883a6
Merge: 89dbd7a f48e501
Author: Seth Vidal <skvidal@xxxxxxxxxxxxxxxxx>
Date:   Tue May 31 23:22:01 2011 -0400

    Merge branch 'master' of ssh://git.fedorahosted.org/git/func
    
    * 'master' of ssh://git.fedorahosted.org/git/func:
      introduce a new function called get_all_up_hosts which returns host list - downed host list so that scripts (func-yum and func-ps-compare) and modules (ping and grep) can relay on it



commit 89dbd7a3fff8e348754d5929caec65365927c8d1
Author: Seth Vidal <skvidal@xxxxxxxxxxxxxxxxx>
Date:   Tue May 31 23:21:14 2011 -0400

    add autostart info as an item to the info returned on any vm from libvirt

diff --git a/func/minion/modules/virt.py b/func/minion/modules/virt.py
index bd128c6..f37f349 100644
--- a/func/minion/modules/virt.py
+++ b/func/minion/modules/virt.py
@@ -181,8 +181,12 @@ class Virt(func_module.FuncModule):
                 "maxMem"    : str(data[1]),
                 "memory"    : str(data[2]),
                 "nrVirtCpu" : data[3],
-                "cpuTime"   : str(data[4])
+                "cpuTime"   : str(data[4]),
             }
+            thisvm = self.conn.find_vm(vm)
+            if hasattr(thisvm, 'autostart'):
+                info[vm]["autostart"] = thisvm.autostart()
+
         return info
 
     def nodeinfo(self):


_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list


[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux