ansible-test: exposes tiny_prefix variable (#75129)

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 5b8fb4dcd3)
pull/75258/head
Gonéri Le Bouder 3 years ago committed by GitHub
parent e2c60cee80
commit 9e5091ab5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

Loading…
Cancel
Save