Skip to content

Commit

Permalink
Updated to rely on properties
Browse files Browse the repository at this point in the history
  • Loading branch information
jbristowe committed Feb 2, 2021
1 parent f826428 commit 906d82b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions octopusdeploy/schema_deployment_action.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package octopusdeploy

import (
"strconv"

"github.com/OctopusDeploy/go-octopusdeploy/octopusdeploy"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down Expand Up @@ -180,10 +178,10 @@ func expandDeploymentAction(tfAction map[string]interface{}) octopusdeploy.Deplo

// Even though not all actions have these properties, we'll keep them here.
// They will just be ignored if the action doesn't have it
runOnServer := tfAction["run_on_server"]
if runOnServer != nil {
action.Properties["Octopus.Action.RunOnServer"] = strconv.FormatBool(runOnServer.(bool))
}
// runOnServer := tfAction["run_on_server"]
// if runOnServer != nil {
// action.Properties["Octopus.Action.RunOnServer"] = strconv.FormatBool(runOnServer.(bool))
// }

workerPoolID := tfAction["worker_pool_id"]
if workerPoolID != nil {
Expand Down

0 comments on commit 906d82b

Please sign in to comment.