mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Provide a more friendly error message.
This commit is contained in:
parent
36555856c7
commit
55312ea03f
1 changed files with 2 additions and 3 deletions
|
@ -2023,9 +2023,8 @@ def create(vm_=None, call=None):
|
|||
|
||||
if not GCE_VM_NAME_REGEX.match(vm_['name']):
|
||||
raise SaltCloudSystemExit(
|
||||
'The allowed VM names must match the following regular expression: {0}'.format(
|
||||
GCE_VM_NAME_REGEX.pattern
|
||||
)
|
||||
'VM names must start with a letter, only contain letters, numbers, or dashes '
|
||||
'and cannot end in a dash.'
|
||||
)
|
||||
|
||||
conn = get_conn()
|
||||
|
|
Loading…
Add table
Reference in a new issue