@@ -368,14 +368,15 @@ func getEnvironmentFromParams(params kernel.Params) (Environment, error) {
368
368
if geoip := config .GeoipURLs ; len (geoip ) > 0 {
369
369
env .GeoipURLs = geoip
370
370
}
371
-
372
- if flist := config .FlistURL ; len (flist ) > 0 {
373
- env .FlistURL = flist
374
- }
375
-
376
- if storage := config .HubStorage ; len (storage ) > 0 {
377
- env .HubStorage = storage
378
- }
371
+ // flist url and hub urls shouldn't listen to changes in config as long as we can't change it at run time.
372
+ // it would cause breakage in vmd that needs a reboot to be recovered.
373
+ // if flist := config.FlistURL; len(flist) > 0 {
374
+ // env.FlistURL = flist
375
+ // }
376
+ //
377
+ // if storage := config.HubStorage; len(storage) > 0 {
378
+ // env.HubStorage = storage
379
+ // }
379
380
380
381
if hub := config .HubURL ; len (hub ) > 0 {
381
382
env .HubURL = hub
@@ -389,14 +390,14 @@ func getEnvironmentFromParams(params kernel.Params) (Environment, error) {
389
390
// if the node running v4 chage urls to use v4 hub
390
391
if params .IsV4 () {
391
392
env .FlistURL = defaultV4FlistURL
392
- if flist := config .V4FlistURL ; len (flist ) > 0 {
393
- env .FlistURL = flist
394
- }
393
+ // if flist := config.V4FlistURL; len(flist) > 0 {
394
+ // env.FlistURL = flist
395
+ // }
395
396
396
397
env .HubStorage = defaultV4HubStorage
397
- if storage := config .V4HubStorage ; len (storage ) > 0 {
398
- env .HubStorage = storage
399
- }
398
+ // if storage := config.V4HubStorage; len(storage) > 0 {
399
+ // env.HubStorage = storage
400
+ // }
400
401
401
402
}
402
403
0 commit comments