Skip to content

Commit

Permalink
Ensure runbookProcess has runbook ProjectId set (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
zentron authored Jun 2, 2024
1 parent b576e75 commit f860c5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions octopusdeploy/resource_runbook_process.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func resourceRunbookProcessCreate(ctx context.Context, d *schema.ResourceData, m

runbookProcess.ID = current.ID
runbookProcess.Links = current.Links
runbookProcess.ProjectID = runbook.ProjectID
runbookProcess.Version = current.Version

createdRunbookProcess, err := runbookprocess.Update(client, runbookProcess)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ resource "octopusdeploy_deployment_process" "test_deployment_process" {
name = "Kubectl Action"
package_requirement = "LetOctopusDecide"
start_trigger = "StartAfterPrevious"
target_roles = [ "mycluster" ]
run_kubectl_script_action {
name = "Kubectl Action"
run_on_server = true
Expand All @@ -106,7 +107,7 @@ resource "octopusdeploy_deployment_process" "test_deployment_process" {
name = "Raw Yaml Action"
package_requirement = "LetOctopusDecide"
start_trigger = "StartAfterPrevious"
properties = { "Octopus.Action.TargetRoles" : "Qwerty" }
target_roles = [ "mycluster" ]
action {
action_type = "Octopus.KubernetesDeployRawYaml"
name = "Raw Yaml Action"
Expand Down Expand Up @@ -138,7 +139,7 @@ resource "octopusdeploy_deployment_process" "test_deployment_process" {
name = "Deploy Secret"
package_requirement = "LetOctopusDecide"
start_trigger = "StartAfterPrevious"
properties = { "Octopus.Action.TargetRoles" : "Qwerty" }
target_roles = [ "mycluster" ]
deploy_kubernetes_secret_action {
name = "Deploy secret"
secret_name = "name"
Expand Down

0 comments on commit f860c5a

Please sign in to comment.