From c373d5307f8c8df29a049bccf50172cdf9e7f8c2 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Wed, 21 Oct 2020 09:20:26 -0400 Subject: [PATCH] allow the CLI to associate Galaxy credentials to Organizations $ awx organizations associate Default --galaxy_credential "Ansible Galaxy" --- awxkit/awxkit/cli/custom.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/awxkit/awxkit/cli/custom.py b/awxkit/awxkit/cli/custom.py index fb45043632..38d97d8895 100644 --- a/awxkit/awxkit/cli/custom.py +++ b/awxkit/awxkit/cli/custom.py @@ -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'], })