@@ -160,7 +160,7 @@ func AllocAddressHandler(w http.ResponseWriter, r *http.Request, vars map[string
160
160
readNet .StateDriver = stateDriver
161
161
netList , err := readNet .ReadAll ()
162
162
if err != nil {
163
- if ! strings .Contains (err .Error (), "Key not found" ) {
163
+ if ! strings .Contains (err .Error (), "key not found" ) {
164
164
log .Errorf ("error reading keys during host create. Error: %s" , err )
165
165
return nil , err
166
166
}
@@ -232,7 +232,7 @@ func AllocAddressHandler(w http.ResponseWriter, r *http.Request, vars map[string
232
232
return aresp , nil
233
233
}
234
234
log .Errorf ("Could not find the network for: %s" , allocReq .NetworkID )
235
- return nil , errors .New ("Network not found" )
235
+ return nil , errors .New ("network not found" )
236
236
}
237
237
238
238
// find the network from network id
@@ -443,7 +443,7 @@ func UpdateEndpointHandler(w http.ResponseWriter, r *http.Request, vars map[stri
443
443
key := mastercfg .GetNwCfgKey (epUpdReq .Network , epUpdReq .Tenant )
444
444
err := nwCfg .Read (key )
445
445
if err != nil {
446
- if ! strings .Contains (err .Error (), "Key not found" ) {
446
+ if ! strings .Contains (err .Error (), "key not found" ) {
447
447
return nil , err
448
448
}
449
449
//If network is not found then networkname is epg
@@ -495,7 +495,7 @@ func UpdateEndpointHandler(w http.ResponseWriter, r *http.Request, vars map[stri
495
495
providerID := getProviderID (provider )
496
496
providerDbID := getProviderDbID (provider )
497
497
if providerID == "" || providerDbID == "" {
498
- return nil , fmt .Errorf ("Invalid ProviderID from providerInfo:{%v}" , provider )
498
+ return nil , fmt .Errorf ("invalid ProviderID from providerInfo:{%v}" , provider )
499
499
}
500
500
501
501
//update provider db
@@ -541,7 +541,7 @@ func UpdateEndpointHandler(w http.ResponseWriter, r *http.Request, vars map[stri
541
541
542
542
providerDbID := epUpdReq .ContainerID
543
543
if providerDbID == "" {
544
- return nil , fmt .Errorf ("Invalid containerID in UpdateEndpointRequest:(nil)" )
544
+ return nil , fmt .Errorf ("invalid containerID in UpdateEndpointRequest:(nil)" )
545
545
}
546
546
547
547
mastercfg .SvcMutex .Lock ()
@@ -557,7 +557,7 @@ func UpdateEndpointHandler(w http.ResponseWriter, r *http.Request, vars map[stri
557
557
providerID := getProviderID (provider )
558
558
if providerID == "" {
559
559
mastercfg .SvcMutex .Unlock ()
560
- return nil , fmt .Errorf ("Invalid ProviderID from providerInfo:{%v}" , provider )
560
+ return nil , fmt .Errorf ("invalid ProviderID from providerInfo:{%v}" , provider )
561
561
}
562
562
if service .Providers [providerID ] != nil {
563
563
delete (service .Providers , providerID )
0 commit comments