summaryrefslogtreecommitdiffstats
path: root/awxkit
diff options
context:
space:
mode:
authorRebeccah <rhunter@redhat.com>2021-02-16 20:11:56 +0100
committerShane McDonald <me@shanemcd.com>2021-03-04 00:52:55 +0100
commit20ee73ce73160fe723cd82cb16aa18a03067f70a (patch)
tree41ecd59b591e62bef80eee90a7ab80f806227440 /awxkit
parentUpdate selectors on EE details page to ease testing (diff)
downloadawx-20ee73ce73160fe723cd82cb16aa18a03067f70a.tar.xz
awx-20ee73ce73160fe723cd82cb16aa18a03067f70a.zip
default pull options for container images to None, also adding pull options to awxkit
Diffstat (limited to 'awxkit')
-rw-r--r--awxkit/awxkit/api/pages/execution_environments.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/awxkit/awxkit/api/pages/execution_environments.py b/awxkit/awxkit/api/pages/execution_environments.py
index a01aa91011..11e3e2f881 100644
--- a/awxkit/awxkit/api/pages/execution_environments.py
+++ b/awxkit/awxkit/api/pages/execution_environments.py
@@ -21,9 +21,9 @@ class ExecutionEnvironment(HasCreate, base.Base):
NATURAL_KEY = ('name',)
# fields are name, image, organization, managed_by_tower, credential
- def create(self, name='', image='quay.io/ansible/ansible-runner:devel', credential=None, **kwargs):
+ def create(self, name='', image='quay.io/ansible/ansible-runner:devel', credential=None, pull=None, **kwargs):
# we do not want to make a credential by default
- payload = self.create_payload(name=name, image=image, credential=credential, **kwargs)
+ payload = self.create_payload(name=name, image=image, credential=credential, pull=pull, **kwargs)
ret = self.update_identity(ExecutionEnvironments(self.connection).post(payload))
return ret
@@ -33,12 +33,13 @@ class ExecutionEnvironment(HasCreate, base.Base):
payload.ds = DSAdapter(self.__class__.__name__, self._dependency_store)
return payload
- def payload(self, name='', image=None, organization=None, credential=None, **kwargs):
+ def payload(self, name='', image=None, organization=None, credential=None, pull=None, **kwargs):
payload = PseudoNamespace(
name=name or "EE - {}".format(random_title()),
image=image or random_title(10),
organization=organization.id if organization else None,
credential=credential.id if credential else None,
+ pull=pull if pull else None,
**kwargs
)