mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-23 09:13:34 -05:00
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)
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user