ansible-test: exposes tiny_prefix variable
ansible-test aws provider now creates and exposes a new tiny_prefix variable to provide a shorter prefix for the AWS tests.
This commit is contained in:
parent
08fc43f3ea
commit
5b8fb4dcd3
3
changelogs/fragments/aws_tiny_prefix.yaml
Normal file
3
changelogs/fragments/aws_tiny_prefix.yaml
Normal file
|
@ -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
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import uuid
|
||||||
|
|
||||||
from .... import types as t
|
from .... import types as t
|
||||||
|
|
||||||
|
@ -100,6 +101,7 @@ class AwsCloudEnvironment(CloudEnvironment):
|
||||||
|
|
||||||
ansible_vars = dict(
|
ansible_vars = dict(
|
||||||
resource_prefix=self.resource_prefix,
|
resource_prefix=self.resource_prefix,
|
||||||
|
tiny_prefix=uuid.uuid4().hex[0:12]
|
||||||
)
|
)
|
||||||
|
|
||||||
# noinspection PyTypeChecker
|
# noinspection PyTypeChecker
|
||||||
|
|
Loading…
Reference in a new issue