mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
stringify linode id before performing str actions
Fixes #26798. At the start of the provisioning process, linode reports VM names by their linode ID, which is represented by the driver as an integer.
This commit is contained in:
parent
70d0268c83
commit
2ff5823944
1 changed files with 1 additions and 0 deletions
|
@ -1033,6 +1033,7 @@ def _validate_name(name):
|
|||
name
|
||||
The VM name to validate
|
||||
'''
|
||||
name = str(name)
|
||||
name_length = len(name)
|
||||
regex = re.compile(r'^[a-zA-Z0-9][A-Za-z0-9_-]*[a-zA-Z0-9]$')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue