Add validator for ee image field name

awxkit default ee image name is now a fixed valid (but bogus) name, rather than random unicode
This commit is contained in:
Seth Foster
2021-06-14 22:51:36 -04:00
parent ef67f9c65d
commit 61846e88ca
5 changed files with 156 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ class ExecutionEnvironment(HasCreate, HasCopy, base.Base):
def payload(self, name='', image=None, organization=None, credential=None, pull='', **kwargs):
payload = PseudoNamespace(
name=name or "EE - {}".format(random_title()),
image=image or random_title(10),
image=image or "example.invalid/component:tagname",
organization=organization.id if organization else None,
credential=credential.id if credential else None,
pull=pull,