[PATCH] Bug fix: methods signature in storagetargets.py

From: Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com> The lack of the 'self' keyword was causing bugs when trying to create a nfs pool. Signed-off-by: Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com> --- src/kimchi/model/storagetargets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kimchi/model/storagetargets.py b/src/kimchi/model/storagetargets.py index be7cdaf..01cdaf8 100644 --- a/src/kimchi/model/storagetargets.py +++ b/src/kimchi/model/storagetargets.py @@ -62,7 +62,7 @@ class StorageTargetsModel(object): target_list.extend(targets) return target_list - def _get_storage_server_spec(**kwargs): + def _get_storage_server_spec(self, **kwargs): # Required parameters: # server: # target_type: @@ -73,7 +73,7 @@ class StorageTargetsModel(object): xml = ET.tostring(obj) return xml - def _parse_target_source_result(target_type, xml_str): + def _parse_target_source_result(self, target_type, xml_str): root = objectify.fromstring(xml_str) ret = [] for source in root.getchildren(): -- 1.8.3.1
participants (3)
-
Aline Manera
-
Daniel Barboza
-
Ramon Medeiros