Skip to content

Commit

Permalink
Display an error message when selected edition does not match with
Browse files Browse the repository at this point in the history
site checkmk edition

This change will show a warning when setting up a commercial edition but
connecting to a raw one, or when setting a raw edition and connecting to
a commercial one. In the last case the message warns about some
unavailable functionality unless commercial editions is selected

CMK-14788
  • Loading branch information
lpetrora committed Oct 18, 2023
1 parent 5c4b6cd commit cde1b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export default class RestApiBackend implements Backend {
`Checkmk version 2.1.0 has been detected, but this plugin is configured to use version 2.2.0 and above. Please set the backend option to '< 2.2'.`
);
}
if (this.datasource.getEdition() === 'CEE' && result.data.edition === 'cre') {
if (this.datasource.getEdition() !== 'RAW' && result.data.edition === 'cre') {
throw new Error(
'The data source specified the Checkmk commercial editions, but Checkmk Raw Edition was detected. Choose the raw edition in the data source settings.'
);
Expand Down

0 comments on commit cde1b5c

Please sign in to comment.