Skip to content

Commit 27f3eaa

Browse files
author
Riya
committed
fix lint
1 parent 6db5d8f commit 27f3eaa

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cns/restserver/internalapi.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,7 @@ func (service *HTTPRestService) CreateOrUpdateNetworkContainerInternal(req *cns.
630630
if ok {
631631
existingReq := existingNCInfo.CreateNetworkContainerRequest
632632
if !reflect.DeepEqual(existingReq.IPConfiguration.IPSubnet, req.IPConfiguration.IPSubnet) {
633-
634-
logger.Debugf("Updating PrimaryCA for NCId %s", req.NetworkContainerid)
633+
service.Logger.Debug("subnet address pod cidr has changed for NCId " + req.NetworkContainerid)
635634

636635
// Update the in-memory state
637636
service.Lock()
@@ -642,11 +641,11 @@ func (service *HTTPRestService) CreateOrUpdateNetworkContainerInternal(req *cns.
642641

643642
// Persist the updated state to disk
644643
if err := service.saveState(); err != nil {
645-
logger.Errorf("Failed to save updated CNS state: %v", err)
644+
service.Logger.Error("Failed to save updated CNS state: " + err.Error())
646645
return types.UnexpectedError
647646
}
648647

649-
logger.Debugf("Successfully updated PrimaryCA and saved CNS state")
648+
service.Logger.Debug("Successfully updated subnet address pod cidr and saved CNS state")
650649
}
651650
}
652651

0 commit comments

Comments
 (0)