client, structs comments

This commit is contained in:
Lang Martin
2019-03-29 10:44:52 -04:00
parent fc309cb430
commit be2838d6ba
2 changed files with 7 additions and 1 deletions

View File

@@ -1227,6 +1227,8 @@ func (c *Client) updateNodeFromFingerprint(response *fingerprint.FingerprintResp
}
// COMPAT(0.10): Remove in 0.10
// update the response networks with the config
// if we still have node changes, merge them
if response.Resources != nil {
response.Resources.Networks = updateNetworks(
c.config.Node.Resources.Networks,
@@ -1238,6 +1240,8 @@ func (c *Client) updateNodeFromFingerprint(response *fingerprint.FingerprintResp
}
}
// update the response networks with the config
// if we still have node changes, merge them
if response.NodeResources != nil {
response.NodeResources.Networks = updateNetworks(
c.config.Node.NodeResources.Networks,