From 5987aafb8228ad43257f43971f428ca583cadd92 Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Thu, 6 Jun 2019 11:04:23 -0400 Subject: [PATCH] update shared client code for api v2 --- awx/ui/client/src/rest/restServices.factory.js | 2 +- awx/ui/client/src/shared/directives.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/awx/ui/client/src/rest/restServices.factory.js b/awx/ui/client/src/rest/restServices.factory.js index e562b68b26..b65a9a1c96 100644 --- a/awx/ui/client/src/rest/restServices.factory.js +++ b/awx/ui/client/src/rest/restServices.factory.js @@ -20,7 +20,7 @@ * * ``` * /api/v2/inventories/9/ - * /api/v2/credentials/?name=SSH Key&kind=ssh + * /api/v2/credentials/?name=SSH Key&credential_type__namespace=ssh * ``` * * When constructing the URL be sure to use the GetBasePath() method found in js/shared/Utilities.js. GetBasePath uses the response objects from /api and diff --git a/awx/ui/client/src/shared/directives.js b/awx/ui/client/src/shared/directives.js index 9f46002506..6cbd603e4a 100644 --- a/awx/ui/client/src/shared/directives.js +++ b/awx/ui/client/src/shared/directives.js @@ -654,13 +654,13 @@ function(SettingsUtils, i18n, $rootScope) { else { switch(base) { case 'credential': - query += '&kind=ssh&role_level=use_role'; + query += '&credential_type__namespace=ssh&role_level=use_role'; break; case 'scm_credential': - query += '&kind=scm&role_level=use_role'; + query += '&redential_type__namespace=scm&role_level=use_role'; break; case 'network_credential': - query += '&kind=net&role_level=use_role'; + query += '&redential_type__namespace=net&role_level=use_role'; break; case 'cloud_credential': query += '&cloud=true&role_level=use_role';