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