1
0
Fork 0

Fix mon not using values from config when /config/global is not present

pull/1/head
Vitaliy Filippov 2023-12-22 02:25:04 +03:00
parent 95631773b6
commit 4ece4dfdd0
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ class Mon
this.parse_etcd_addresses(config.etcd_address||config.etcd_url);
this.verbose = config.verbose || 0;
this.initConfig = config;
this.config = {};
this.config = { ...config };
this.etcd_prefix = config.etcd_prefix || '/vitastor';
this.etcd_prefix = this.etcd_prefix.replace(/\/\/+/g, '/').replace(/^\/?(.*[^\/])\/?$/, '/$1');
this.etcd_start_timeout = (config.etcd_start_timeout || 5) * 1000;