Merge pull request #7420 from elyezer/update-credential-creation

Update awxkit credential creation

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot] 2020-06-23 18:31:50 +00:00 committed by GitHub
commit 69589821ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -310,7 +310,7 @@ class Credential(HasCopy, HasCreate, base.Base):
credential_type=CredentialType,
user=None,
team=None,
organization=Organization,
organization=None,
inputs=None,
**kwargs):
payload = self.create_payload(
@ -323,7 +323,7 @@ class Credential(HasCopy, HasCreate, base.Base):
return self.update_identity(
Credentials(
self.connection)).post(payload)
def test(self, data):
"""Test the credential endpoint."""
response = self.connection.post(urljoin(str(self.url), 'test/'), data)