[openlmi-tools] fix cache inconsistency
Peter Hatina
phatina at fedoraproject.org
Wed May 14 11:43:24 UTC 2014
commit 12bb7c5466526b7dedee95bc3c22337d1fd9fc8d
Author: Peter Hatina <phatina at redhat.com>
Date: Wed May 14 13:34:53 2014 +0200
fix cache inconsistency
openlmi-tools-01-cache.patch | 14 ++++++++++++--
openlmi-tools.spec | 5 ++++-
2 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/openlmi-tools-01-cache.patch b/openlmi-tools-01-cache.patch
index 086d5b5..189a695 100644
--- a/openlmi-tools-01-cache.patch
+++ b/openlmi-tools-01-cache.patch
@@ -174,7 +174,17 @@ index ca39740..aabec1f 100644
@lmi_return_val_if_fail(lambda obj: obj._namespace, [])
def methods(self):
"""
-@@ -326,7 +348,7 @@ class LMIClass(LMIWrapperBaseObject):
+@@ -313,7 +335,8 @@ class LMIClass(LMIWrapperBaseObject):
+ **Usage:** See :ref:`class_methods`.
+ **Note:** When caching is turned off, this method may consume some time.
+ """
+- (class_names, _, _) = self._conn._client._get_class_names(self.namespace)
++ (class_names, _, _) = self._conn._client._get_class_names(
++ self.namespace, DeepInheritance=True)
+ methods_lst = self._cim_class.methods.keys()
+ # Iterate through a list of all CIM methods and append any method which
+ # can be called in the synchronous way. One type of such method is the
+@@ -326,7 +349,7 @@ class LMIClass(LMIWrapperBaseObject):
return methods_lst
@@ -183,7 +193,7 @@ index ca39740..aabec1f 100644
@lmi_return_if_fail(lambda obj: obj._namespace)
def print_methods(self):
"""
-@@ -355,7 +377,7 @@ class LMIClass(LMIWrapperBaseObject):
+@@ -355,7 +378,7 @@ class LMIClass(LMIWrapperBaseObject):
return self._namespace.name
@property
diff --git a/openlmi-tools.spec b/openlmi-tools.spec
index ff016d8..7fabce4 100644
--- a/openlmi-tools.spec
+++ b/openlmi-tools.spec
@@ -1,6 +1,6 @@
Name: openlmi-tools
Version: 0.9.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Set of CLI tools for Openlmi providers
License: GPLv2+
@@ -116,6 +116,9 @@ install -m 644 cli/completion/_lmishell $zsh_comp_dir
%{_docdir}/%{name}-%{version}/html
%changelog
+* Wed May 14 2014 Peter Hatina <phatina at redhat.com> - 0.9.1-3
+- fix cache inconsistency
+
* Mon Apr 28 2014 Peter Hatina <phatina at redhat.com> - 0.9.1-2
- improve caching
More information about the scm-commits
mailing list