diff options
author | Will Thames <will@thames.id.au> | 2018-03-07 09:56:38 +1000 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2018-03-07 06:09:50 -0800 |
commit | a7371d49982b92b964c284615750181cb08b67d0 (patch) | |
tree | 5d174d7f00da3f908df327c5dfcc69faa253da9e | |
parent | e1297af18a2e9b13899f512af853a9792e79041e (diff) | |
download | ansible-a7371d49982b92b964c284615750181cb08b67d0.tar.gz |
Having uppercase in the resource_prefix can cause unexpected issues
We may as well enforce lower case resource prefixes at source
-rw-r--r-- | test/runner/lib/cloud/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/runner/lib/cloud/__init__.py b/test/runner/lib/cloud/__init__.py index 1ed059bb16..f572e9191c 100644 --- a/test/runner/lib/cloud/__init__.py +++ b/test/runner/lib/cloud/__init__.py @@ -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)) |