Skip to content

Commit

Permalink
fix cluster status type: sbd_config can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
idevat committed Aug 11, 2020
1 parent 3baabcf commit 9f1be39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/backend/types/clusterStatus/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const ApiNode = t.intersection([
pacemaker: t.boolean,
pacemaker_enabled: t.boolean,
pcsd_enabled: t.boolean,
sbd_config: t.type({}),
sbd_config: t.union([t.type({}), t.null]),
}),
]),
]);
Expand Down
2 changes: 1 addition & 1 deletion src/dev/api/responses/clusterStatus/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const clusterOk = clusterName =>

const clusterError = cluster("error", "error", {
node_list: [
node(1),
node(1, { sbd_config: null }),
node(2, { status: "offline", quorum: false }),
node(3, { status: "offline", quorum: false }),
],
Expand Down

0 comments on commit 9f1be39

Please sign in to comment.