address a few follow-up issues for Org -> Galaxy Credentials support

- add support for managing galaxy creds in the tower organization module
- fix a minor serializer bug
This commit is contained in:
Ryan Petrello
2020-09-10 10:31:46 -04:00
parent ff7c2e9180
commit af238be377
3 changed files with 23 additions and 0 deletions

View File

@@ -2695,6 +2695,7 @@ class CredentialSerializerCreate(CredentialSerializer):
attrs['organization'] = attrs['team'].organization
if (
'credential_type' in attrs and
attrs['credential_type'].kind == 'galaxy' and
list(owner_fields) != ['organization']
):