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:
softwarefactory-project-zuul[bot] 2019-08-21 16:45:07 +00:00 committed by GitHub
commit 1d05c21af4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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