Skip to content

Commit

Permalink
[Fleet] Use registry version check on main (elastic#125495)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdover authored Feb 14, 2022
1 parent b3a7bf2 commit 9278294
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 9278294

Please sign in to comment.