Skip to content

Commit

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

* Add leading slash to transport.request path.
* Remove unnecessary 'hidden' expand_wildcards option, since 'all' includes hidden indices.
  • Loading branch information
cjcenizal committed Jul 30, 2020
1 parent b262d55 commit 1d818f4
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 1d818f4

Please sign in to comment.