Repository :
http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
---------------------------------------------------------------
commit a79499f3c592f3918b3c77929f049631e8bb0d66
Author: Peter Hatina <phatina(a)redhat.com>
Date: Sat Jul 20 16:36:46 2013 +0200
introduce _LmiInstance::is_deleted property
It indicates, if the instance was deleted from the CIMOM
---------------------------------------------------------------
cli-tools/lmi/lmi_client_shell.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/cli-tools/lmi/lmi_client_shell.py b/cli-tools/lmi/lmi_client_shell.py
index 8b77822..b454e54 100644
--- a/cli-tools/lmi/lmi_client_shell.py
+++ b/cli-tools/lmi/lmi_client_shell.py
@@ -2453,6 +2453,13 @@ class _LmiInstance(BaseObject):
rval = self._client._delete_instance(self.path)
self._deleted = rval.rval == 0
+ @property
+ def is_deleted(self):
+ """
+ Property returning a bool indicator, if the instance was deleted from the CIMOM.
+ """
+ return self._deleted
+
class _LmiShellCache(object):
"""
Class representing a shell cache. Currently, it caches retrieved classes from the