mirror of
https://github.com/democratic-csi/democratic-csi.git
synced 2026-10-04 14:32:05 +02:00
better intialization of missing options
This commit is contained in:
@@ -38,6 +38,12 @@ class ControllerZfsSshBaseDriver extends CsiBaseDriver {
|
||||
constructor(ctx, options) {
|
||||
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 || {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user