From fb7e4a30d9820d884e160ac8871bdb09d9d09024 Mon Sep 17 00:00:00 2001 From: Evan Baker Date: Tue, 9 May 2023 20:15:09 +0000 Subject: [PATCH] fix nnccli log message Signed-off-by: Evan Baker --- cns/ipampool/monitor.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cns/ipampool/monitor.go b/cns/ipampool/monitor.go index 6c0bbed41c..0a35660fba 100644 --- a/cns/ipampool/monitor.go +++ b/cns/ipampool/monitor.go @@ -273,7 +273,7 @@ func (pm *Monitor) increasePoolSize(ctx context.Context, meta metaState, state i if _, err := pm.nnccli.UpdateSpec(ctx, &tempNNCSpec); err != nil { // caller will retry to update the CRD again - return errors.Wrap(err, "executing UpdateSpec with NNC CLI") + return errors.Wrap(err, "executing UpdateSpec with NNC client") } logger.Printf("[ipam-pool-monitor] Increasing pool size: UpdateCRDSpec succeeded for spec %+v", tempNNCSpec) @@ -337,7 +337,7 @@ func (pm *Monitor) decreasePoolSize(ctx context.Context, meta metaState, state i _, err := pm.nnccli.UpdateSpec(ctx, &tempNNCSpec) if err != nil { // caller will retry to update the CRD again - return errors.Wrap(err, "executing UpdateSpec with NNC CLI") + return errors.Wrap(err, "executing UpdateSpec with NNC client") } logger.Printf("[ipam-pool-monitor] Decreasing pool size: UpdateCRDSpec succeeded for spec %+v", tempNNCSpec) @@ -362,7 +362,7 @@ func (pm *Monitor) cleanPendingRelease(ctx context.Context) error { _, err := pm.nnccli.UpdateSpec(ctx, &tempNNCSpec) if err != nil { // caller will retry to update the CRD again - return errors.Wrap(err, "executing UpdateSpec with NNC CLI") + return errors.Wrap(err, "executing UpdateSpec with NNC client") } logger.Printf("[ipam-pool-monitor] cleanPendingRelease: UpdateCRDSpec succeeded for spec %+v", tempNNCSpec)