Fix workflow job template webhook credential bug - #12324 (#12325)

Signed-off-by: tompage1994@hotmail.co.uk <tpage@redhat.com>
This commit is contained in:
Tom Page 2022-07-11 13:13:44 +01:00 committed by GitHub
parent e296d0adad
commit 008a4b4d30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -736,7 +736,7 @@ def main():
webhook_credential = module.params.get('webhook_credential')
if webhook_credential:
new_fields['webhook_credential'] = module.resolve_name_to_id('webhook_credential', webhook_credential)
new_fields['webhook_credential'] = module.resolve_name_to_id('credentials', webhook_credential)
# Create the data that gets sent for create and update
new_fields['name'] = new_name if new_name else (module.get_item_name(existing_item) if existing_item else name)