summaryrefslogtreecommitdiffstats
path: root/awxkit
diff options
context:
space:
mode:
authorElijah DeLee <kdelee@redhat.com>2023-02-03 16:08:24 +0100
committerElijah DeLee <kdelee@redhat.com>2023-03-08 18:58:12 +0100
commit9e037f1a0224a13183e6cd4553cf78bd7b9e341c (patch)
tree7154ea05846006d59d54ede035c692db407c0623 /awxkit
parentadd the extra vars support and configuration for max job and hosts (diff)
downloadawx-9e037f1a0224a13183e6cd4553cf78bd7b9e341c.tar.xz
awx-9e037f1a0224a13183e6cd4553cf78bd7b9e341c.zip
fixup return values for bulk launch and host create in awxkit
Enabled the params bulk job make black make black again Fixed inventory and organization input params for bulk modules add collection integration tests Fix cli return errors fix test completeness
Diffstat (limited to 'awxkit')
-rw-r--r--awxkit/awxkit/api/pages/bulk.py9
-rw-r--r--awxkit/awxkit/api/resources.py1
2 files changed, 10 insertions, 0 deletions
diff --git a/awxkit/awxkit/api/pages/bulk.py b/awxkit/awxkit/api/pages/bulk.py
index 197b5c2585..b7342cab45 100644
--- a/awxkit/awxkit/api/pages/bulk.py
+++ b/awxkit/awxkit/api/pages/bulk.py
@@ -10,3 +10,12 @@ class Bulk(base.Base):
page.register_page([resources.bulk, (resources.bulk, 'get')], Bulk)
+
+
+class BulkJobLaunch(base.Base):
+ def post(self, payload={}):
+ result = self.connection.post(self.endpoint, payload)
+ return self.walk(result.json()['url'])
+
+
+page.register_page(resources.bulk_job_launch, BulkJobLaunch)
diff --git a/awxkit/awxkit/api/resources.py b/awxkit/awxkit/api/resources.py
index 31bf6c5829..448a0bb582 100644
--- a/awxkit/awxkit/api/resources.py
+++ b/awxkit/awxkit/api/resources.py
@@ -14,6 +14,7 @@ class Resources(object):
_auth = 'auth/'
_authtoken = 'authtoken/'
_bulk = 'bulk/'
+ _bulk_job_launch = 'bulk/job_launch/'
_config = 'config/'
_config_attach = 'config/attach/'
_credential = r'credentials/\d+/'