Merge pull request #4631 from ryanpetrello/galaxy-creds-cli

allow the CLI to associate Galaxy credentials to Organizations
This commit is contained in:
Ryan Petrello 2020-10-21 10:40:55 -04:00 committed by GitHub
commit a26d20cbf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -246,6 +246,7 @@ class AssociationMixin(object):
'success_notification': 'notification_templates',
'failure_notification': 'notification_templates',
'credential': 'credentials',
'galaxy_credential': 'credentials',
}[resource]
def get(self, **kwargs):
@ -367,9 +368,11 @@ class OrganizationNotificationDisAssociation(NotificationAssociateMixin, CustomA
OrganizationNotificationAssociation.targets.update({
'approval_notification': ['notification_templates_approvals', 'notification_template'],
'galaxy_credential': ['galaxy_credentials', 'credential'],
})
OrganizationNotificationDisAssociation.targets.update({
'approval_notification': ['notification_templates_approvals', 'notification_template'],
'galaxy_credential': ['galaxy_credentials', 'credential'],
})