diff options
author | Gonéri Le Bouder <goneri@lebouder.net> | 2021-07-12 07:33:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-12 00:33:42 -0500 |
commit | 4e4f2a37f88b9b2f90f959917e30e52f2682f35b (patch) | |
tree | a9bf245cd38e4d54b912e4f998c2dd6bae1e65b7 | |
parent | 9b2040521004eafaf207fa8c3dc386f4d4cff84c (diff) | |
download | ansible-4e4f2a37f88b9b2f90f959917e30e52f2682f35b.tar.gz |
ansible-test: exposes tiny_prefix variable (#75130)
ansible-test aws provider now creates and exposes a new tiny_prefix
variable to provide a shorter prefix for the AWS tests.
(cherry picked from commit 5b8fb4dcd3d84aad77330644a7326bc16dd02a3b)
-rw-r--r-- | changelogs/fragments/aws_tiny_prefix.yaml | 3 | ||||
-rw-r--r-- | test/lib/ansible_test/_internal/cloud/aws.py | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/changelogs/fragments/aws_tiny_prefix.yaml b/changelogs/fragments/aws_tiny_prefix.yaml new file mode 100644 index 0000000000..7e4dd6c26c --- /dev/null +++ b/changelogs/fragments/aws_tiny_prefix.yaml @@ -0,0 +1,3 @@ +--- +minor_changes: +- ansible-test - aws creates and exposes a new tiny_prefix variable to provide a shorter prefix for the AWS tests. diff --git a/test/lib/ansible_test/_internal/cloud/aws.py b/test/lib/ansible_test/_internal/cloud/aws.py index 421323b331..e80be722db 100644 --- a/test/lib/ansible_test/_internal/cloud/aws.py +++ b/test/lib/ansible_test/_internal/cloud/aws.py @@ -3,6 +3,7 @@ from __future__ import (absolute_import, division, print_function) __metaclass__ = type import os +import uuid from ..util import ( ApplicationError, @@ -95,6 +96,7 @@ class AwsCloudEnvironment(CloudEnvironment): ansible_vars = dict( resource_prefix=self.resource_prefix, + tiny_prefix=uuid.uuid4().hex[0:12] ) ansible_vars.update(dict(parser.items('default'))) |