Repository : http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
commit 797b500e93282718a23b87c7d77cb64907ccbbb7 Author: Peter Hatina phatina@redhat.com Date: Wed Jul 31 13:55:09 2013 +0200
rename wrong constant tuple in LMIMethod to _INDICATION_JOB_CLASSNAMES
cli/lmi/shell/LMIMethod.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cli/lmi/shell/LMIMethod.py b/cli/lmi/shell/LMIMethod.py index 8067d5a..6b60462 100644 --- a/cli/lmi/shell/LMIMethod.py +++ b/cli/lmi/shell/LMIMethod.py @@ -57,7 +57,7 @@ class LMIMethod(LMIBaseObject): _INDICATION_DESTINATION_PORT = 10240 # Job classes, which can be used for synchro method calls # TODO: create a configuration option for the static filters' classnames - _INDICATION_FILTER_CLASSNAMES = ( + _INDICATION_JOB_CLASSNAMES = ( "LMI_StorageJob", "LMI_SoftwareInstallationJob", "LMI_NetworkJob" @@ -357,7 +357,7 @@ class LMIMethod(LMIBaseObject): ) # Check if we can perform synchronous method call job = call_rparams["job"] if "job" in call_rparams else None - can_perform_sync_call = job.classname in LMIMethod._INDICATION_FILTER_CLASSNAMES if job else False + can_perform_sync_call = job.classname in LMIMethod._INDICATION_JOB_CLASSNAMES if job else False if self._sync_method and job and can_perform_sync_call: # Synchronous method calls job_inst = call_rparams['job'].to_instance()
cura-tools-devel@lists.fedorahosted.org