From cb5e26d081fe0a2cf5832e432905c063051e77ea Mon Sep 17 00:00:00 2001 From: giorod3 Date: Thu, 1 Aug 2019 11:42:54 -0700 Subject: [PATCH] removed the policy id from the path in list policies. --- services/iam/policy.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/iam/policy.js b/services/iam/policy.js index c486b87..9bffe04 100644 --- a/services/iam/policy.js +++ b/services/iam/policy.js @@ -43,8 +43,7 @@ function list( auth, parameters, callback ) { var headers = ocirest.buildHeaders( possibleHeaders, parameters ); var queryString = ocirest.buildQueryString( possibleQueryStrings, parameters ); ocirest.process( auth, - { path : auth.RESTversion + '/policies/' + encodeURIComponent(parameters.policyId) + - queryString, + { path : auth.RESTversion + '/policies' + queryString, host : endpoint.service.iam[auth.region], headers : headers, method : 'GET' },