Skip to content

Commit b8e413c

Browse files
Update naming convenction
1 parent 4947b6c commit b8e413c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cns/restserver/internalapi.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ func (service *HTTPRestService) getSupportedAPIsFromNMAgent(ctx context.Context)
678678
return apis, nil
679679
}
680680

681-
func (service *HTTPRestService) isSwiftV2NCSupported(ctx context.Context) bool {
681+
func (service *HTTPRestService) isSwiftV2NCGoalStateSupported(ctx context.Context) bool {
682682
apis, err := service.getSupportedAPIsFromNMAgent(ctx)
683683
if err != nil {
684684
//nolint:staticcheck // SA1019: suppress deprecated logger.Printf usage. Todo: legacy logger usage is consistent in cns repo. Migrates when all logger usage is migrated
@@ -721,7 +721,7 @@ func (service *HTTPRestService) GetIMDSNCs(ctx context.Context) (map[string]stri
721721
return make(map[string]string), nil
722722
}
723723
// Check NMAgent API support for SwiftV2, if it fails return empty map assuming support might not be available in that nma build
724-
if !service.isSwiftV2NCSupported(ctx) || !service.isNCDetailsAPIExists(ctx) {
724+
if !service.isSwiftV2NCGoalStateSupported(ctx) || !service.isNCDetailsAPIExists(ctx) {
725725
//nolint:staticcheck // SA1019: suppress deprecated logger.Printf usage. Todo: legacy logger usage is consistent in cns repo. Migrates when all logger usage is migrated
726726
logger.Errorf("NMAgent does not support SwiftV2 API or IMDS does not support NC details API")
727727
return make(map[string]string), nil

0 commit comments

Comments
 (0)