Skip to content

Commit

Permalink
Potential fix for #627
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinhard-Pilz-Dynatrace committed Jan 29, 2025
1 parent 1b40805 commit 59b57ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dynatrace/api/automation/workflows/settings/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ func (me *Tasks) UnmarshalJSON(data []byte) error {
return nil
}

var useTypeSet = os.Getenv("DYNATRACE_WORKFLOW_TASKS_USE_TYPE_SET") == "true"
var useTypeList = os.Getenv("DYNATRACE_WORKFLOW_TASKS_USE_TYPE_LIST") == "true"

func (me *Tasks) Schema(prefix string) map[string]*schema.Schema {
if useTypeSet {
if useTypeList {
return map[string]*schema.Schema{
"task": {
Type: schema.TypeSet,
Type: schema.TypeList,
Description: "TODO: No documentation available",
MinItems: 1,
Optional: true,
Expand All @@ -76,7 +76,7 @@ func (me *Tasks) Schema(prefix string) map[string]*schema.Schema {
}
return map[string]*schema.Schema{
"task": {
Type: schema.TypeList,
Type: schema.TypeSet,
Description: "TODO: No documentation available",
MinItems: 1,
Optional: true,
Expand Down

0 comments on commit 59b57ec

Please sign in to comment.