mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
allow the CLI to associate Galaxy credentials to Organizations
$ awx organizations associate Default --galaxy_credential "Ansible Galaxy"
This commit is contained in:
parent
36abc9b123
commit
c373d5307f
@ -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'],
|
||||
})
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user