Skip to content

Commit

Permalink
fix: missing worker id on run kubectl script
Browse files Browse the repository at this point in the history
  • Loading branch information
domenicsim1 committed Oct 19, 2023
1 parent 94550be commit 7ff26a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion octopusdeploy/schema_action_run_kubectl_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ func getRunKubectlScriptSchema() *schema.Schema {
actionSchema, element := getActionSchema()
addExecutionLocationSchema(element)
addScriptFromPackageSchema(element)
addWorkerPoolSchema(element)
addWorkerPoolVariableSchema(element)
addPackagesSchema(element, false)
return actionSchema
}
Expand All @@ -28,7 +30,7 @@ func expandRunKubectlScriptAction(flattenedAction map[string]interface{}) *deplo
}

func flattenKubernetesRunScriptAction(action *deployments.DeploymentAction) map[string]interface{} {
flattenedAction := flattenAction(action)
flattenedAction := flattenDeploymentAction(action)

if v, ok := action.Properties["Octopus.Action.RunOnServer"]; ok {
runOnServer, _ := strconv.ParseBool(v.Value)
Expand Down

0 comments on commit 7ff26a7

Please sign in to comment.