1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #291 from mavenugo/master

Return an empty config if nil
This commit is contained in:
Jana Radhakrishnan 2015-06-13 15:14:49 -07:00
commit 4329f8d185

View file

@ -169,6 +169,9 @@ func (c *controller) hostLeaveCallback(hosts []net.IP) {
func (c *controller) Config() config.Config {
c.Lock()
defer c.Unlock()
if c.cfg == nil {
return config.Config{}
}
return *c.cfg
}