Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request spinnaker#794 from lwander/job-cleanup
Browse files Browse the repository at this point in the history
Fixup missing imports & clarify logic w/ comment
  • Loading branch information
lwander committed Apr 26, 2016
2 parents f8ef2b8 + c3cdac6 commit 95ec5db
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class MonitorKatoTask implements RetryableTask {
Map<String, ? extends Object> outputs = [:]
if (status == ExecutionStatus.SUCCEEDED) {
def deployed = getDeployedNames(katoTask)
// The below two checks aren't mutually exclusive since both `deploy.server.groups` and `deploy.jobs` can initially
// by empty, although only one of them needs to be filled.
if (!stage.context.containsKey("deploy.server.groups")) {
outputs["deploy.server.groups"] = getServerGroupNames(katoTask)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import com.netflix.spinnaker.orca.DefaultTaskResult
import com.netflix.spinnaker.orca.ExecutionStatus
import com.netflix.spinnaker.orca.Task
import com.netflix.spinnaker.orca.TaskResult
import com.netflix.spinnaker.orca.clouddriver.MortService
import com.netflix.spinnaker.orca.clouddriver.OortService
import com.netflix.spinnaker.orca.clouddriver.tasks.AbstractCloudProviderAwareTask
import com.netflix.spinnaker.orca.pipeline.model.Stage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import com.netflix.spinnaker.orca.DefaultTaskResult
import com.netflix.spinnaker.orca.ExecutionStatus
import com.netflix.spinnaker.orca.RetryableTask
import com.netflix.spinnaker.orca.TaskResult
import com.netflix.spinnaker.orca.clouddriver.MortService
import com.netflix.spinnaker.orca.clouddriver.OortService
import com.netflix.spinnaker.orca.clouddriver.tasks.AbstractCloudProviderAwareTask
import com.netflix.spinnaker.orca.pipeline.model.Stage
Expand Down

0 comments on commit 95ec5db

Please sign in to comment.