mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #26815 from jfindlay/linstr
stringify linode id before performing str actions
This commit is contained in:
commit
6edfa36083
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