summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-02-07 17:11:22 +0000
committerGerrit Code Review <review@openstack.org>2017-02-07 17:11:22 +0000
commit3d6d48a233314679e266abf1dacbebebaa51025c (patch)
tree1c7e13b9405262e312772f6423aa2813123180f1
parent5eb41d7bc18b4ac06fdff7099d338736a610abf2 (diff)
parentff04eb8394d81750608a95bedf6ab8cd5244d5e8 (diff)
Merge "Moving task cache update into task creation transaction"
-rw-r--r--nailgun/nailgun/task/task.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nailgun/nailgun/task/task.py b/nailgun/nailgun/task/task.py
index f2d7db0..fec16a4 100644
--- a/nailgun/nailgun/task/task.py
+++ b/nailgun/nailgun/task/task.py
@@ -909,8 +909,9 @@ class DeleteIBPImagesTask(object):
909 def execute(cls, cluster, image_data): 909 def execute(cls, cluster, image_data):
910 task = Task(name=consts.TASK_NAMES.remove_images, cluster=cluster) 910 task = Task(name=consts.TASK_NAMES.remove_images, cluster=cluster)
911 db().add(task) 911 db().add(task)
912 message = cls.message(task, image_data)
912 db().commit() 913 db().commit()
913 rpc.cast('naily', cls.message(task, image_data)) 914 rpc.cast('naily', message)
914 915
915 916
916class StopDeploymentTask(object): 917class StopDeploymentTask(object):