Merge pull request #174 from jellonek/updatecomment

plugins/ipam/static: Update docstring
This commit is contained in:
Bryan Boreham 2018-08-01 16:28:45 +01:00 committed by GitHub
commit 75d3585862
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,9 @@ func canonicalizeIP(ip *net.IP) error {
return fmt.Errorf("IP %s not v4 nor v6", *ip) return fmt.Errorf("IP %s not v4 nor v6", *ip)
} }
// NewIPAMConfig creates a NetworkConfig from the given network name. // LoadIPAMConfig creates IPAMConfig using json encoded configuration provided
// as `bytes`. At the moment values provided in envArgs are ignored so there
// is no possibility to overload the json configuration using envArgs
func LoadIPAMConfig(bytes []byte, envArgs string) (*IPAMConfig, string, error) { func LoadIPAMConfig(bytes []byte, envArgs string) (*IPAMConfig, string, error) {
n := Net{} n := Net{}
if err := json.Unmarshal(bytes, &n); err != nil { if err := json.Unmarshal(bytes, &n); err != nil {