summaryrefslogtreecommitdiffstats
path: root/src/python
diff options
context:
space:
mode:
authorJan Safranek <jsafrane@redhat.com>2013-10-10 09:37:08 +0200
committerJan Safranek <jsafrane@redhat.com>2013-10-10 09:37:08 +0200
commitd69d26ad7bc0cecab13cf7172422d88288a32d70 (patch)
treeff9ab0325ece9b9de4f971048e63988c6e779077 /src/python
parent913e34885b801a5e3ac3c464c40564e53abbaca3 (diff)
parent8103d436e0ab013d333b39b45bec249274e9c8c4 (diff)
Merge branch 'devel/fix-thread-shutdown'
Diffstat (limited to 'src/python')
-rw-r--r--src/python/lmi/providers/JobManager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/lmi/providers/JobManager.py b/src/python/lmi/providers/JobManager.py
index 609c7db..f285fe1 100644
--- a/src/python/lmi/providers/JobManager.py
+++ b/src/python/lmi/providers/JobManager.py
@@ -960,7 +960,7 @@ class JobManager(object):
# Cancel all running/suspended/queued jobs.
# This will send indications.
for job in self.jobs.itervalues():
- if job.state in (Job.STATE_QUEUED, Job.STATE_SUSPENDED,
+ if job.job_state in (Job.STATE_QUEUED, Job.STATE_SUSPENDED,
Job.STATE_RUNNING):
job.cancel()