Skip to content

Commit

Permalink
[Fleet] Use registry version check on main (#125495) (#125517)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9278294)

Co-authored-by: Josh Dover <[email protected]>
  • Loading branch information
kibanamachine and joshdover authored Feb 14, 2022
1 parent 40006d2 commit 9103d18
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions x-pack/plugins/fleet/server/services/epm/registry/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,8 @@ function setKibanaVersion(url: URL) {
}

const kibanaVersion = appContextService.getKibanaVersion().split('-')[0]; // may be x.y.z-SNAPSHOT
const kibanaBranch = appContextService.getKibanaBranch();

// on main, request all packages regardless of version
if (kibanaVersion && kibanaBranch !== 'main') {
if (kibanaVersion) {
url.searchParams.set('kibana.version', kibanaVersion);
}
}
Expand Down

0 comments on commit 9103d18

Please sign in to comment.