summaryrefslogtreecommitdiffstats
path: root/awx_collection/plugins
diff options
context:
space:
mode:
authorSeth Foster <fosterbseth@gmail.com>2023-03-03 01:29:00 +0100
committerSeth Foster <fosterbseth@gmail.com>2023-03-07 23:49:57 +0100
commita952ab0a75dc2432575ceadea581b95810a57846 (patch)
treeadcf1da3e15a83055baee860fcb69e858ff6dad6 /awx_collection/plugins
parentMerge pull request #13656 from TheRealHaoLiu/feature-branch-build (diff)
downloadawx-a952ab0a75dc2432575ceadea581b95810a57846.tar.xz
awx-a952ab0a75dc2432575ceadea581b95810a57846.zip
Add scm_branch to inventory source and inventory update
add scm_branch as optional field awxkit
Diffstat (limited to 'awx_collection/plugins')
-rw-r--r--awx_collection/plugins/modules/inventory_source.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/awx_collection/plugins/modules/inventory_source.py b/awx_collection/plugins/modules/inventory_source.py
index f3000ee9ec..1e6939df3f 100644
--- a/awx_collection/plugins/modules/inventory_source.py
+++ b/awx_collection/plugins/modules/inventory_source.py
@@ -105,6 +105,11 @@ options:
description:
- Project to use as source with scm option
type: str
+ scm_branch:
+ description:
+ - Inventory source SCM branch.
+ - Project must have branch override enabled.
+ type: str
state:
description:
- Desired state of the resource.
@@ -178,6 +183,7 @@ def main():
update_on_launch=dict(type='bool'),
update_cache_timeout=dict(type='int'),
source_project=dict(),
+ scm_branch=dict(type='str'),
notification_templates_started=dict(type="list", elements='str'),
notification_templates_success=dict(type="list", elements='str'),
notification_templates_error=dict(type="list", elements='str'),
@@ -272,6 +278,7 @@ def main():
'enabled_var',
'enabled_value',
'host_filter',
+ 'scm_branch',
)
# Layer in all remaining optional information