Skip to content

Commit

Permalink
Fix Snapshot Restore /policies/indices API endpoint on Cloud (#73734) (
Browse files Browse the repository at this point in the history
…#73763)

* Add leading slash to transport.request path.
* Remove unnecessary 'hidden' expand_wildcards option, since 'all' includes hidden indices.
  • Loading branch information
cjcenizal authored Jul 30, 2020
1 parent 05b1e59 commit 9974d59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/snapshot_restore/server/routes/api/policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ export function registerPolicyRoutes({
'transport.request',
{
method: 'GET',
path: `_resolve/index/*`,
path: `/_resolve/index/*`,
query: {
expand_wildcards: 'all,hidden',
expand_wildcards: 'all',
},
}
);
Expand Down

0 comments on commit 9974d59

Please sign in to comment.