Repository :
http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
---------------------------------------------------------------
commit 60ec6d38f7bd4b62d7a0f865196f2e09a9752a80
Author: Peter Hatina <phatina(a)redhat.com>
Date: Tue Feb 12 13:24:20 2013 +0100
introduce _LmiInstance::first_reference()
---------------------------------------------------------------
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 38c9d5d..a7f85aa 100644
--- a/cli-tools/lmi/lmi_client_shell.py
+++ b/cli-tools/lmi/lmi_client_shell.py
@@ -687,6 +687,13 @@ class _LmiInstance(BaseObject):
return result
@possibly_deleted
+ def first_reference(self, ResultClass = None, Role = None, Props = None):
+ result = self.references(ResultClass = ResultClass, Role = Role, Props = Props)
+ if not result:
+ return None
+ return result[0]
+
+ @possibly_deleted
def properties(self):
return self._cim_instance.properties.keys()