mirror of
https://github.com/ansible/awx.git
synced 2026-02-21 13:10:11 -03:30
Merge pull request #4631 from ryanpetrello/galaxy-creds-cli
allow the CLI to associate Galaxy credentials to Organizations
This commit is contained in:
@@ -246,6 +246,7 @@ class AssociationMixin(object):
|
|||||||
'success_notification': 'notification_templates',
|
'success_notification': 'notification_templates',
|
||||||
'failure_notification': 'notification_templates',
|
'failure_notification': 'notification_templates',
|
||||||
'credential': 'credentials',
|
'credential': 'credentials',
|
||||||
|
'galaxy_credential': 'credentials',
|
||||||
}[resource]
|
}[resource]
|
||||||
|
|
||||||
def get(self, **kwargs):
|
def get(self, **kwargs):
|
||||||
@@ -367,9 +368,11 @@ class OrganizationNotificationDisAssociation(NotificationAssociateMixin, CustomA
|
|||||||
|
|
||||||
OrganizationNotificationAssociation.targets.update({
|
OrganizationNotificationAssociation.targets.update({
|
||||||
'approval_notification': ['notification_templates_approvals', 'notification_template'],
|
'approval_notification': ['notification_templates_approvals', 'notification_template'],
|
||||||
|
'galaxy_credential': ['galaxy_credentials', 'credential'],
|
||||||
})
|
})
|
||||||
OrganizationNotificationDisAssociation.targets.update({
|
OrganizationNotificationDisAssociation.targets.update({
|
||||||
'approval_notification': ['notification_templates_approvals', 'notification_template'],
|
'approval_notification': ['notification_templates_approvals', 'notification_template'],
|
||||||
|
'galaxy_credential': ['galaxy_credentials', 'credential'],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user