Skip to content

Commit

Permalink
fix error message for job name validator
Browse files Browse the repository at this point in the history
  • Loading branch information
jiec-msft committed Apr 16, 2024
1 parent 56dc41b commit 8758c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spring/azext_spring/jobs/job_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def _validate_job_name(job_name):
matchObj = match(r'^[a-z][a-z0-9-]{2,30}[a-z0-9]$', job_name)
if matchObj is None:
raise InvalidArgumentValueError(
'--name should start with lowercase and only contain numbers and lowercases with length [4,31]')
'The job name is invalid. It can contain only lowercase letters, numbers and hyphens. The first character must be a letter. The last character must be a letter or number. The value must be between 4 and 32 characters long.')


def _validate_envs(namespace):
Expand Down

0 comments on commit 8758c83

Please sign in to comment.