Skip to content

Commit d7e0829

Browse files
authored
fix(jobs): remove unnecessary validation on environment field (#3536)
1 parent f826d8c commit d7e0829

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

internal/services/jobs/jobs.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,9 @@ func definitionSchema() map[string]*schema.Schema {
147147
ValidateFunc: validation.StringMatch(regexp.MustCompile(`^(/[^/]+)+$`), "must be an absolute path to the file"),
148148
},
149149
"environment": {
150-
Type: schema.TypeString,
151-
Optional: true,
152-
Description: "An environment variable containing the secret value.",
153-
ValidateFunc: validation.StringMatch(regexp.MustCompile(`^[A-Z|0-9]+(_[A-Z|0-9]+)*$`), "environment variable must be composed of uppercase letters separated by an underscore"),
150+
Type: schema.TypeString,
151+
Optional: true,
152+
Description: "An environment variable containing the secret value.",
154153
},
155154
},
156155
},

0 commit comments

Comments
 (0)