mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 14:38:00 -03:30
Merge pull request #4544 from AlanCoding/rm_credential
Remove deprecated credential logic from create factory Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
1d05c21af4
@ -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