mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 02:17:37 -02:30
remove deprecated credential logic from create factory
This commit is contained in:
@@ -20,9 +20,8 @@ class WorkflowJobTemplateNode(HasCreate, base.Base):
|
|||||||
|
|
||||||
update_payload(payload, optional_fields, kwargs)
|
update_payload(payload, optional_fields, kwargs)
|
||||||
|
|
||||||
for resource in ('credential', 'inventory'):
|
if 'inventory' in kwargs:
|
||||||
if resource in kwargs:
|
payload['inventory'] = kwargs['inventory'].id
|
||||||
payload[resource] = kwargs[resource].id
|
|
||||||
|
|
||||||
return payload
|
return payload
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user