diff options
author | Leno Hou <lenohou@gmail.com> | 2016-05-09 16:35:40 +0800 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2016-05-24 17:29:06 +0100 |
commit | ebfddb2423d6bf81a1fd7dc6d6cfdb6aaf7cf8a0 (patch) | |
tree | 26ab210eea9430fe3f45514ed71cc8537822b329 | |
parent | 472c8193a9f69bb7bd352203ef3404b0400a0d4a (diff) | |
download | sos-ebfddb2423d6bf81a1fd7dc6d6cfdb6aaf7cf8a0.tar.gz |
[policies] Fix ibmkvm policy initialize function
When loading policy, its leads failed load with sysroot.
This patch updates the initialize function with sysroot
Resolves: #820, #809.
Signed-off-by: Leno Hou <lenohou@gmail.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/policies/ibmkvm.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sos/policies/ibmkvm.py b/sos/policies/ibmkvm.py index ff059532..c93f9606 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 |