Repository : http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
commit f8a25b56058171c21fa567e50b0e99558b89e6c7 Author: Peter Hatina phatina@redhat.com Date: Wed Nov 6 14:22:44 2013 +0100
fix passing LMIInstance objects to method calls
cli/lmi/shell/LMIMethod.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/cli/lmi/shell/LMIMethod.py b/cli/lmi/shell/LMIMethod.py index 5681b2f..a658e8c 100644 --- a/cli/lmi/shell/LMIMethod.py +++ b/cli/lmi/shell/LMIMethod.py @@ -478,6 +478,8 @@ class LMIMethod(LMIWrapperBaseObject): if param in self._method.parameters: if isinstance(value, LMIObjectFactory().LMIInstanceName): value = value.wrapped_object + elif isinstance(value, LMIObjectFactory().LMIInstance): + value = value.wrapped_object.path t = self._method.parameters[param].type method_args[param] = lmi_cast_to_cim(t, value) else:
cura-tools-devel@lists.fedorahosted.org