Skip to content

Commit a9f2031

Browse files
authored
Enabling selecting a source project from other organization
1 parent a53fdad commit a9f2031

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

awx_collection/plugins/modules/inventory_source.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ def main():
284284
if ee is not None:
285285
inventory_source_fields['execution_environment'] = module.resolve_name_to_id('execution_environments', ee)
286286
if source_project is not None:
287-
source_project_object = module.get_one('projects', name_or_id=source_project, data=lookup_data)
287+
source_project_object = module.get_one('projects', name_or_id=source_project)
288288
if not source_project_object:
289-
module.fail_json(msg='The specified source project, {0}, was not found.'.format(lookup_data))
289+
module.fail_json(msg='The specified source project, {0}, was not found.'.format(source_project))
290290
inventory_source_fields['source_project'] = source_project_object['id']
291291

292292
OPTIONAL_VARS = (

0 commit comments

Comments
 (0)