From 02cd646b44dbd4af4aaecb9fefa3ad0966a42998 Mon Sep 17 00:00:00 2001 From: beeankha Date: Tue, 25 May 2021 16:52:54 -0400 Subject: [PATCH] Update awxkit to enable export of Galaxy credentials associated to organizations --- awxkit/awxkit/api/pages/credentials.py | 7 +++++-- awxkit/awxkit/api/resources.py | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/awxkit/awxkit/api/pages/credentials.py b/awxkit/awxkit/api/pages/credentials.py index 11fadd8711..5f78b63f8b 100644 --- a/awxkit/awxkit/api/pages/credentials.py +++ b/awxkit/awxkit/api/pages/credentials.py @@ -287,7 +287,10 @@ class Credential(HasCopy, HasCreate, base.Base): return passwords -page.register_page([resources.credential, (resources.credentials, 'post'), (resources.credential_copy, 'post')], Credential) +page.register_page( + [resources.credential, (resources.credentials, 'post'), (resources.credential_copy, 'post'), (resources.organization_galaxy_credentials, 'post')], + Credential, +) class Credentials(page.PageList, Credential): @@ -295,7 +298,7 @@ class Credentials(page.PageList, Credential): pass -page.register_page([resources.credentials, resources.related_credentials], Credentials) +page.register_page([resources.credentials, resources.related_credentials, resources.organization_galaxy_credentials], Credentials) class CredentialCopy(base.Base): diff --git a/awxkit/awxkit/api/resources.py b/awxkit/awxkit/api/resources.py index 3d27dbb1df..3868eb733d 100644 --- a/awxkit/awxkit/api/resources.py +++ b/awxkit/awxkit/api/resources.py @@ -140,6 +140,7 @@ class Resources(object): _organization_admins = r'organizations/\d+/admins/' _organization_applications = r'organizations/\d+/applications/' _organization_execution_environments = r'organizations/\d+/execution_environments/' + _organization_galaxy_credentials = r'organizations/\d+/galaxy_credentials/' _organization_inventories = r'organizations/\d+/inventories/' _organization_users = r'organizations/\d+/users/' _organizations = 'organizations/'