better intialization of missing options
This commit is contained in:
parent
c4eecd2749
commit
f255bc7498
|
|
@ -38,6 +38,12 @@ class ControllerZfsSshBaseDriver extends CsiBaseDriver {
|
||||||
constructor(ctx, options) {
|
constructor(ctx, options) {
|
||||||
super(...arguments);
|
super(...arguments);
|
||||||
|
|
||||||
|
options = options || {};
|
||||||
|
options.service = options.service || {};
|
||||||
|
options.service.identity = options.service.identity || {};
|
||||||
|
options.service.controller = options.service.controller || {};
|
||||||
|
options.service.node = options.service.node || {};
|
||||||
|
|
||||||
options.service.identity.capabilities =
|
options.service.identity.capabilities =
|
||||||
options.service.identity.capabilities || {};
|
options.service.identity.capabilities || {};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue