Update integration test playbooks to work with most current Collections modules

This commit is contained in:
beeankha
2021-08-17 13:29:33 -04:00
parent c58fef949d
commit c89296e76d
11 changed files with 93 additions and 69 deletions

View File

@@ -495,10 +495,10 @@ def main():
if field_val is not None:
new_fields[field_name] = field_val
# Special treatment of extra_vars parameter
extra_vars = module.params.get('extra_vars')
if extra_vars is not None:
new_fields['extra_vars'] = json.dumps(extra_vars)
# Special treatment of extra_vars parameter
extra_vars = module.params.get('extra_vars')
if extra_vars is not None:
new_fields['extra_vars'] = json.dumps(extra_vars)
# Attempt to look up the related items the user specified (these will fail the module if not found)
inventory = module.params.get('inventory')