[sos-devel] [PATCH v1] [policies] Fix ibmkvm policy initialize function

Leno Hou lenohou at gmail.com
Mon May 9 08:38:02 UTC 2016


When loading policy, its leads failed load with sysroot.
This patch updates the initialize function with sysroot

Signed-off-by: Leno Hou <lenohou at gmail.com>
---
 sos/policies/ibmkvm.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sos/policies/ibmkvm.py b/sos/policies/ibmkvm.py
index ff05953..c93f960 100644
--- a/sos/policies/ibmkvm.py
+++ b/sos/policies/ibmkvm.py
@@ -29,8 +29,8 @@ class PowerKVMPolicy(RedHatPolicy):
     vendor = "IBM"
     vendor_url = "http://www-03.ibm.com/systems/power/software/linux/powerkvm"
 
-    def __init__(self):
-        super(PowerKVMPolicy, self).__init__()
+    def __init__(self, sysroot=None):
+        super(PowerKVMPolicy, self).__init__(sysroot=sysroot)
         self.valid_subclasses = [PowerKVMPlugin, RedHatPlugin]
 
     @classmethod
@@ -54,8 +54,8 @@ class ZKVMPolicy(RedHatPolicy):
     vendor = "IBM Hypervisor"
     vendor_url = "http://www.ibm.com/systems/z/linux/IBMHypervisor/support/"
 
-    def __init__(self):
-        super(ZKVMPolicy, self).__init__()
+    def __init__(self, sysroot=None):
+        super(ZKVMPolicy, self).__init__(sysroot=sysroot)
         self.valid_subclasses = [ZKVMPlugin, RedHatPlugin]
 
     @classmethod
-- 
1.9.1




More information about the sos-devel mailing list