Skip to content

Commit 79d3bf7

Browse files
committed
chore: always use the path argument, not default path
1 parent 9433b31 commit 79d3bf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

provider/parameter.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ func (v *Parameter) validValue(value string, optionType OptionType, optionValues
525525
Severity: diag.Error,
526526
Summary: "When using list(string) type, value must be a json encoded list of strings",
527527
Detail: err.Error(),
528-
AttributePath: defaultValuePath,
528+
AttributePath: path,
529529
},
530530
}
531531
}
@@ -548,7 +548,7 @@ func (v *Parameter) validValue(value string, optionType OptionType, optionValues
548548
"%s %q is not a valid option, values %q are missing from the options",
549549
name, value, strings.Join(missing, ", "),
550550
),
551-
AttributePath: defaultValuePath,
551+
AttributePath: path,
552552
},
553553
}
554554
}

0 commit comments

Comments
 (0)