Fixed the conditional check that failed to find promotion in STARTED state

References #172
This commit is contained in:
Mahesh V Kelkar 2015-05-04 09:31:03 -04:00
parent 7b6efb297b
commit 8d595463ec
2 changed files with 2 additions and 3 deletions

View File

@ -682,8 +682,8 @@ class WorkFlow {
/* Find out if any other promotions are waiting for results */
models.PromotionResult startedPromotionResult = deployment.getPromotionResultSet().find() {
pr -> pr.promotionIdent == Status.STARTED
models.PromotionResult startedPromotionResult = deployment.promotionResultSet.find() {
pr -> pr.status == Status.STARTED
}
if (startedPromotionResult != null) {
/* Wait for more promotion results */

View File

@ -239,7 +239,6 @@ class PromotionCompletedNotificationsSpec extends Specification {
deployment = integAppHelper.runner.getApplication().workFlow.deploymentDAO
.get(deploymentId)
}
println "***MVK: deployment=${deployment}"
then:
success == true