diff --git a/changelogs/fragments/aws_tiny_prefix.yaml b/changelogs/fragments/aws_tiny_prefix.yaml new file mode 100644 index 00000000000000..7e4dd6c26c580f --- /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 421323b3314fb5..e80be722db0b51 100644 --- a/test/lib/ansible_test/_internal/cloud/aws.py +++ b/test/lib/ansible_test/_internal/cloud/aws.py @@ -3,6 +3,7 @@ __metaclass__ = type import os +import uuid from ..util import ( ApplicationError, @@ -95,6 +96,7 @@ def get_environment_config(self): ansible_vars = dict( resource_prefix=self.resource_prefix, + tiny_prefix=uuid.uuid4().hex[0:12] ) ansible_vars.update(dict(parser.items('default')))