Update awxkit credential creation

Does not have an organization by default. Let `create_payload` decide if
it should be automatically created or not. This will avoid having more
than one owner when either user or team is passed to `create`.
This commit is contained in:
Elyézer Rezende
2020-06-23 10:10:15 -04:00
parent d96cde91a3
commit e80942f6cd

View File

@@ -310,7 +310,7 @@ class Credential(HasCopy, HasCreate, base.Base):
credential_type=CredentialType, credential_type=CredentialType,
user=None, user=None,
team=None, team=None,
organization=Organization, organization=None,
inputs=None, inputs=None,
**kwargs): **kwargs):
payload = self.create_payload( payload = self.create_payload(