Having uppercase in the resource_prefix can cause unexpected issues

We may as well enforce lower case resource prefixes at source
pull/35917/merge
Will Thames 7 years ago committed by Matt Clay
parent e1297af18a
commit a7371d4998

@ -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))

Loading…
Cancel
Save