Changing check for all in awx.awx.export (#13854)

This commit is contained in:
John Westcott IV 2023-04-18 09:29:25 -04:00 committed by GitHub
parent 886ba1ea7f
commit 32f7dfece1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,7 +159,7 @@ def main():
# Here we are going to setup a dict of values to export
export_args = {}
for resource in EXPORTABLE_RESOURCES:
if module.params.get('all') or module.params.get(resource) == 'all':
if module.params.get('all') or module.params.get(resource) == ['all']:
# If we are exporting everything or we got the keyword "all" we pass in an empty string for this asset type
export_args[resource] = ''
else: