mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
client, structs comments
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user