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:
Justin Findlay 2015-09-01 10:50:40 -06:00
parent 70d0268c83
commit 2ff5823944

View file

@ -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]$')