Skip to content

Commit

Permalink
Telemetry - identify enterprise clusters (#55355)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Schretlen authored Feb 10, 2020
1 parent 09c6f25 commit ce4a0f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function mockGetXPackLicense(callCluster, license, req) {
path: '/_license',
query: {
local: 'true',
accept_enterprise: 'true',
},
})
.returns(
Expand All @@ -32,6 +33,7 @@ function mockGetXPackLicense(callCluster, license, req) {
path: '/_license',
query: {
local: 'true',
accept_enterprise: 'true',
},
})
// conveniently wraps the passed in license object as { license: response }, like it really is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export function getXPackLicense(callCluster) {
query: {
// Fetching the local license is cheaper than getting it from the master and good enough
local: 'true',
// For versions >= 7.6 and < 8.0, this flag is needed otherwise 'platinum' is returned for 'enterprise' license.
accept_enterprise: 'true',
},
}).then(({ license }) => license);
}
Expand Down

0 comments on commit ce4a0f7

Please sign in to comment.