mirror of https://github.com/docker/cli.git
Merge pull request #221 from dnephin/fix-lint-errors
Fix lint errors merged while new lint branch was in PR
This commit is contained in:
commit
0c6b8d717d
|
@ -354,7 +354,11 @@ func convertNetworks(ctx context.Context, apiClient client.NetworkAPIClient, net
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
netAttach = append(netAttach, swarm.NetworkAttachmentConfig(net))
|
netAttach = append(netAttach, swarm.NetworkAttachmentConfig{ // nolint: gosimple
|
||||||
|
Target: net.Target,
|
||||||
|
Aliases: net.Aliases,
|
||||||
|
DriverOpts: net.DriverOpts,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
sort.Sort(byNetworkTarget(netAttach))
|
sort.Sort(byNetworkTarget(netAttach))
|
||||||
return netAttach, nil
|
return netAttach, nil
|
||||||
|
|
|
@ -503,9 +503,8 @@ func updatePlacementPreferences(flags *pflag.FlagSet, placement *swarm.Placement
|
||||||
}
|
}
|
||||||
|
|
||||||
if flags.Changed(flagPlacementPrefAdd) {
|
if flags.Changed(flagPlacementPrefAdd) {
|
||||||
for _, addition := range flags.Lookup(flagPlacementPrefAdd).Value.(*placementPrefOpts).prefs {
|
newPrefs = append(newPrefs,
|
||||||
newPrefs = append(newPrefs, addition)
|
flags.Lookup(flagPlacementPrefAdd).Value.(*placementPrefOpts).prefs...)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
placement.Preferences = newPrefs
|
placement.Preferences = newPrefs
|
||||||
|
|
|
@ -173,7 +173,7 @@ func (configFile *ConfigFile) ParseProxyConfig(host string, runOpts []string) ma
|
||||||
cfgKey = host
|
cfgKey = host
|
||||||
}
|
}
|
||||||
|
|
||||||
config, _ := configFile.Proxies[cfgKey]
|
config := configFile.Proxies[cfgKey]
|
||||||
permitted := map[string]*string{
|
permitted := map[string]*string{
|
||||||
"HTTP_PROXY": &config.HTTPProxy,
|
"HTTP_PROXY": &config.HTTPProxy,
|
||||||
"HTTPS_PROXY": &config.HTTPSProxy,
|
"HTTPS_PROXY": &config.HTTPSProxy,
|
||||||
|
|
Loading…
Reference in New Issue