Repository : http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
commit 3b737805d9dc1203d603394de3f6e05e2601f598 Author: Peter Hatina phatina@redhat.com Date: Tue Jul 15 10:35:03 2014 +0200
revert return type of LMICIMXMLClient::modify_instance()
bool -> int
cli/lmi/shell/LMICIMXMLClient.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/cli/lmi/shell/LMICIMXMLClient.py b/cli/lmi/shell/LMICIMXMLClient.py index a7c24c0..4cd9d5a 100644 --- a/cli/lmi/shell/LMICIMXMLClient.py +++ b/cli/lmi/shell/LMICIMXMLClient.py @@ -741,7 +741,7 @@ class LMICIMXMLClient(object): cim_path = self._cliconn.CreateInstance(NewInstance=cim_instance) return self.get_instance(cim_path, LocalOnly=False)
- @lmi_process_cim_exceptions(False) + @lmi_process_cim_exceptions(-1) def modify_instance(self, instance, IncludeQualifiers=True, PropertyList=None): """ @@ -758,8 +758,8 @@ class LMICIMXMLClient(object): PropertyList is None, the set of properties to be modified consists of those of *ModifiedInstance* with values different from the current values in the instance to be modified. - :returns: :py:class:`.LMIReturnValue` object with ``rval`` set to True, - if no error occurs; otherwise ``rval`` is set to False and + :returns: :py:class:`.LMIReturnValue` object with ``rval`` set to 0, + if no error occurs; otherwise ``rval`` is set to -1 and ``errorstr`` is set to corresponding error string. :raises: :py:exc:`.CIMError`, :py:exc:`.ConnectionError` """ @@ -768,7 +768,7 @@ class LMICIMXMLClient(object): **filter_kwargs( IncludeQualifiers=IncludeQualifiers, PropertyList=PropertyList)) - return LMIReturnValue(rval=True) + return LMIReturnValue(rval=0)
@lmi_process_cim_exceptions(False) def delete_instance(self, instance):
cura-tools-devel@lists.fedorahosted.org