Repository :
http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
---------------------------------------------------------------
commit 6f950b095d6e76a73fde5d512db0029f686ce5bf
Author: Peter Hatina <phatina(a)redhat.com>
Date: Mon Aug 5 15:08:06 2013 +0200
code cleanup, rename valuemap list
---------------------------------------------------------------
cli/lmi/shell/LMIMethod.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/cli/lmi/shell/LMIMethod.py b/cli/lmi/shell/LMIMethod.py
index 614ded4..7760706 100644
--- a/cli/lmi/shell/LMIMethod.py
+++ b/cli/lmi/shell/LMIMethod.py
@@ -97,11 +97,11 @@ class LMIMethod(LMIBaseObject):
self._method = lmi_instance._lmi_class._cim_class.methods[method]
self._sync_method = sync_method
# Store the constant values as a list. This can consume some time, if computed on
demand.
- self._valuemap_parameters = [k for (k, v) in self._method.parameters.iteritems()
\
+ self._valuemap_parameters_list = [k for (k, v) in
self._method.parameters.iteritems() \
if "ValueMap" in v.qualifiers]
# For simplicity, we add return value constans to the same list
if "ValueMap" in self._method.qualifiers:
- self._valuemap_parameters.append(self._method.name)
+ self._valuemap_parameters_list.append(self._method.name)
def __return_synchro_method_call(self, job_inst, job_refresh=True):
"""
@@ -483,13 +483,13 @@ class LMIMethod(LMIBaseObject):
"""
Returns a list of strings of the constant names.
"""
- return self._valuemap_parameters
+ return self._valuemap_parameters_list
def print_valuemap_parameters(self):
"""
Prints out the list of strings of constant names.
"""
- for i in self._valuemap_parameters:
+ for i in self._valuemap_parameters_list:
sys.stdout.write("%s\n" % i)
def parameters(self):