1
0
mirror of https://github.com/rancher/os.git synced 2025-09-02 07:15:41 +00:00

Fix Drone CI

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-07-10 15:45:31 +10:00
parent cbe24ca06b
commit 402af04b44
4 changed files with 27 additions and 17 deletions

View File

@@ -176,14 +176,14 @@ func ApplyNetworkConfigs(netCfg *NetworkConfig, userSetHostname, userSetDNS bool
//apply network config
for _, link := range links {
applyOuter(link, netCfg, wg, userSetHostname, userSetDNS)
applyOuter(link, netCfg, &wg, userSetHostname, userSetDNS)
}
wg.Wait()
return err
}
func applyOuter(link netlink.Link, netCfg *NetworkConfig, wg sync.WaitGroup, userSetHostname, userSetDNS bool) {
func applyOuter(link netlink.Link, netCfg *NetworkConfig, wg *sync.WaitGroup, userSetHostname, userSetDNS bool) {
log.Debugf("applyOuter(%V, %v)", userSetHostname, userSetDNS)
match, ok := findMatch(link, netCfg)
if !ok {