From 16aa73fc2ce14c6e45bad2f02d306960abea80da Mon Sep 17 00:00:00 2001 From: Sean Sullivan Date: Wed, 10 Feb 2021 08:47:51 -0600 Subject: [PATCH] Update inventory source req fields As per the gui, and testing, source is a required field. --- awx_collection/plugins/modules/tower_inventory_source.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx_collection/plugins/modules/tower_inventory_source.py b/awx_collection/plugins/modules/tower_inventory_source.py index 5945d411d8..dca97133e6 100644 --- a/awx_collection/plugins/modules/tower_inventory_source.py +++ b/awx_collection/plugins/modules/tower_inventory_source.py @@ -45,6 +45,7 @@ options: - The source to use for this group. choices: [ "scm", "ec2", "gce", "azure_rm", "vmware", "satellite6", "openstack", "rhv", "tower", "custom" ] type: str + required: True source_path: description: - For an SCM based inventory source, the source path points to the file within the repo to use as an inventory. @@ -165,7 +166,7 @@ def main(): # source=dict(choices=["scm", "ec2", "gce", "azure_rm", "vmware", "satellite6", - "openstack", "rhv", "tower", "custom"]), + "openstack", "rhv", "tower", "custom"], required=True), source_path=dict(), source_script=dict(), source_vars=dict(type='dict'),