mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
set the kv-provider driver labels only if it is a valid config
without this fix, overlay driver returns an error and that causes the daemon to quit. Signed-off-by: Madhu Venugopal <madhu@docker.com>
This commit is contained in:
parent
2888720904
commit
7084bc27f9
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ func (c *controller) RegisterDriver(networkType string, driver driverapi.Driver,
|
|||
}
|
||||
}
|
||||
|
||||
if capability.Scope == driverapi.GlobalScope {
|
||||
if capability.Scope == driverapi.GlobalScope && c.validateDatastoreConfig() {
|
||||
opt[netlabel.KVProvider] = c.cfg.Datastore.Client.Provider
|
||||
opt[netlabel.KVProviderURL] = c.cfg.Datastore.Client.Address
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue