diff options
author | Matt Hicks <mhicks@localhost.localdomain> | 2008-07-17 18:44:20 -0400 |
---|---|---|
committer | Matt Hicks <mhicks@localhost.localdomain> | 2008-07-18 14:09:46 -0400 |
commit | 08cc521ea3f580e557e1f341aa92bb90fc1aafd6 (patch) | |
tree | 373647f7edcb7377ddcbeab5a63f4b8c559fbb16 /func | |
parent | b5212c0ef95ae159d5f06c1d8f4f18bcda714105 (diff) | |
download | func-08cc521ea3f580e557e1f341aa92bb90fc1aafd6.tar.gz func-08cc521ea3f580e557e1f341aa92bb90fc1aafd6.tar.xz func-08cc521ea3f580e557e1f341aa92bb90fc1aafd6.zip |
Adding a 'virttype' method to the virtualization module
to allow a simple call to determine whether the machine
is running Xen or KVM.
Diffstat (limited to 'func')
-rw-r--r-- | func/minion/modules/virt.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/func/minion/modules/virt.py b/func/minion/modules/virt.py index 6cf8c31..ebc0a1c 100644 --- a/func/minion/modules/virt.py +++ b/func/minion/modules/virt.py @@ -187,6 +187,9 @@ class Virt(func_module.FuncModule): pass return results + def virttype(self): + return self.__get_conn().get_type() + def autostart(self, vm): self.conn = self.__get_conn() if self.conn.get_type() == "Xen": |