Repository :
http://git.fedorahosted.org/cgit/cura-tools.git
On branch : openlmi-tools-lmiwbem
---------------------------------------------------------------
commit 212343ebbf33ae531c478e061cb79c937da6385a
Author: Peter Hatina <phatina(a)redhat.com>
Date: Wed May 28 09:49:51 2014 +0200
check for job presence in synchronous method calls
---------------------------------------------------------------
cli/lmi/shell/LMIMethod.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cli/lmi/shell/LMIMethod.py b/cli/lmi/shell/LMIMethod.py
index 8ef82e8..30e93e0 100644
--- a/cli/lmi/shell/LMIMethod.py
+++ b/cli/lmi/shell/LMIMethod.py
@@ -583,7 +583,7 @@ class LMIMethod(LMIWrapperBaseObject):
# Check if we can perform synchronous method call
job = call_rparams.get("job", None)
can_perform_sync_call = False
- if job.classname in LMIMethod._INDICATION_JOB_CLASSNAMES:
+ if job and job.classname in LMIMethod._INDICATION_JOB_CLASSNAMES:
can_perform_sync_call = True
if self._sync_method and job and can_perform_sync_call:
# We work with LMIInstance object, which simplifies the code