fix tests and typos

This commit is contained in:
Hampus Lundqvist
2019-10-03 19:58:12 +02:00
committed by AlanCoding
parent ab80c2276d
commit a2fee252f9

View File

@@ -38,7 +38,7 @@ options:
required: True required: True
type: str type: str
organization: organization:
descripton: description:
- Organization the inventory belongs to. - Organization the inventory belongs to.
reguired: True reguired: True
source: source:
@@ -306,7 +306,7 @@ def main():
try: try:
inventory_res = tower_cli.get_resource('inventory') inventory_res = tower_cli.get_resource('inventory')
params['inventory'] = inventory_res.get(name=inventory,organization=org['id'])['id'] params['inventory'] = inventory_res.get(name=inventory, organization=org['id'])['id']
except (exc.NotFound) as excinfo: except (exc.NotFound) as excinfo:
module.fail_json( module.fail_json(
msg='Failed to update inventory source, ' msg='Failed to update inventory source, '