Skip to content

Commit 319a052

Browse files
authored
Merge pull request #3893 from jandubois/data-param
Also check "data" provisioning scripts for param usage
2 parents d4f4911 + fd83532 commit 319a052

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/limayaml/validate.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,10 @@ func validateParamIsUsed(y *LimaYAML) error {
522522
keyIsUsed = true
523523
break
524524
}
525+
if p.Content != nil && re.MatchString(*p.Content) {
526+
keyIsUsed = true
527+
break
528+
}
525529
if p.Playbook != "" {
526530
playbook, err := os.ReadFile(p.Playbook)
527531
if err != nil {

0 commit comments

Comments
 (0)