Skip to content

Commit fd83532

Browse files
committed
Also check "data" provisioning scripts for param usage
Signed-off-by: Jan Dubois <jan.dubois@suse.com>
1 parent f3afdb6 commit fd83532

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
@@ -521,6 +521,10 @@ func validateParamIsUsed(y *LimaYAML) error {
521521
keyIsUsed = true
522522
break
523523
}
524+
if p.Content != nil && re.MatchString(*p.Content) {
525+
keyIsUsed = true
526+
break
527+
}
524528
if p.Playbook != "" {
525529
playbook, err := os.ReadFile(p.Playbook)
526530
if err != nil {

0 commit comments

Comments
 (0)