summaryrefslogtreecommitdiffstats
path: root/awx_collection/plugins
diff options
context:
space:
mode:
authorElijah DeLee <kdelee@redhat.com>2023-03-01 05:14:06 +0100
committerElijah DeLee <kdelee@redhat.com>2023-03-08 18:58:12 +0100
commit3efc7d5bc4f1cc601f87cd2d5923230d091a35e5 (patch)
tree4b7126972df0fecfa647c66f2e82f6a51178d806 /awx_collection/plugins
parentResolve id inventory and organization (#14) (diff)
downloadawx-3efc7d5bc4f1cc601f87cd2d5923230d091a35e5.tar.xz
awx-3efc7d5bc4f1cc601f87cd2d5923230d091a35e5.zip
fix access problems (#15)
* fix access problems and add Add bulk job max settings to api filter workflow job nodes better This will both improve performance by limiting the queryset for the node sublists as well as fix our access problem. override can_read instead of modify queryset in access.py We do this because we are not going to expose bulk jobs to the list views, which is complicatd and has poor performance implications. Instead, we just care about individual Workflows that clients get linked to not being broken. fix comment remove the get functions from the conf.py for bulk api max value comment the api expose of the bulk job variables reformt conf.py with make black trailing space add more assertion to the bulk host create test
Diffstat (limited to 'awx_collection/plugins')
-rw-r--r--awx_collection/plugins/modules/bulk_job_launch.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/awx_collection/plugins/modules/bulk_job_launch.py b/awx_collection/plugins/modules/bulk_job_launch.py
index 61ed0ef857..8aa5fca254 100644
--- a/awx_collection/plugins/modules/bulk_job_launch.py
+++ b/awx_collection/plugins/modules/bulk_job_launch.py
@@ -197,7 +197,8 @@ EXAMPLES = '''
name: My Bulk Job Launch
jobs:
- unified_job_template: 7
- - unified_job_template: "{{ lookup('awx.awx.controller_api', 'job_templates', query_params={'name': 'Demo Job Template'}, return_ids=True, expect_one=True) }}"
+ - unified_job_template: "{{ lookup('awx.awx.controller_api', 'job_templates', query_params={'name': 'Demo Job Template'},
+ return_ids=True, expect_one=True) }}"
'''
from ..module_utils.controller_api import ControllerAPIModule