Skip to content

Commit 494acbe

Browse files
committed
adapt to edition rebranding
1 parent f47a7fd commit 494acbe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/rest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export default class RestApiBackend implements Backend {
198198
);
199199
}
200200
if (isCloudEdition(result.data.edition)) {
201-
throw new Error('Detected Checkmk Cloud (SaaS). Can not query data from Checkmk Cloud (SaaS).');
201+
throw new Error('Detected Checkmk Cloud. Can not query data from Checkmk Cloud.');
202202
}
203203
// The REST API would be ok with other users, but the autocompleter are not
204204
if (!(await this.isAutomationUser(this.datasource.getUsername()))) {
@@ -256,9 +256,9 @@ export default class RestApiBackend implements Backend {
256256

257257
// check for cloud edition header
258258
const checkmkEdition = result.headers.get('X-Checkmk-Edition');
259-
// CSE is never supported
259+
// Cloud is never supported
260260
if (checkmkEdition && isCloudEdition(checkmkEdition)) {
261-
throw new Error('Cannot query data from Checkmk Cloud (SaaS).');
261+
throw new Error('Cannot query data from Checkmk Cloud.');
262262
}
263263

264264
return result;

0 commit comments

Comments
 (0)