Having uppercase in the resource_prefix can cause unexpected issues

We may as well enforce lower case resource prefixes at source
This commit is contained in:
Will Thames 2018-03-07 09:56:38 +10:00 committed by Matt Clay
parent e1297af18a
commit a7371d4998

View file

@ -350,7 +350,7 @@ class CloudProvider(CloudBase):
os.environ['SHIPPABLE_JOB_NUMBER'],
)
node = re.sub(r'[^a-zA-Z0-9]+', '-', platform.node().split('.')[0])
node = re.sub(r'[^a-zA-Z0-9]+', '-', platform.node().split('.')[0]).lower()
return 'ansible-test-%s-%d' % (node, random.randint(10000000, 99999999))