You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnlen(programmedNCs), errors.Wrap(err, "failed to get nc version list from nmagent")
231
231
}
232
232
233
-
// Get IMDS NC versions for delegated NIC scenarios
234
-
imdsNCVersions, err:=service.getIMDSNCs(ctx)
233
+
// Get IMDS NC versions for delegated NIC scenarios. If any of the NMA API check calls, imds calls fails assume that nma build doesn't have the latest changes and create empty map
234
+
imdsNCVersions:=service.getIMDSNCs(ctx)
235
235
iferr!=nil {
236
236
// If any of the NMA API check calls, imds calls fails assume that nma build doesn't have the latest changes and create empty map
//nolint:staticcheck // SA1019: suppress deprecated logger.Printf usage. Todo: legacy logger usage is consistent in cns repo. Migrates when all logger usage is migrated
694
694
logger.Errorf("IMDS client is not available")
695
-
returnmake(map[string]string), nil
695
+
returnmake(map[string]string)
696
696
}
697
697
// Check NC version support
698
698
if!service.isNCDetailsAPIExists(ctx) {
699
699
//nolint:staticcheck // SA1019: suppress deprecated logger.Printf usage. Todo: legacy logger usage is consistent in cns repo. Migrates when all logger usage is migrated
700
700
logger.Errorf("IMDS does not support NC details API")
//nolint:staticcheck // SA1019: suppress deprecated logger.Printf usage. Todo: legacy logger usage is consistent in cns repo. Migrates when all logger usage is migrated
708
708
logger.Errorf("Failed to get network interfaces from IMDS: %v", err)
//nolint:staticcheck // SA1019: suppress deprecated logger.Debugf usage. Todo: legacy logger usage is consistent in cns repo. Migrates when all logger usage is migrated
725
726
logger.Debugf("failed to add PrefixOnNic keys to Windows registry: %w", err)
726
727
}
727
728
}
728
729
}
729
730
730
-
returnncs, nil
731
+
returnncs
731
732
}
732
733
733
734
// Check whether NC is SwiftV2 NIC associated NC and prefix on nic is enabled
0 commit comments