Skip to content

Commit 8a94176

Browse files
committed
PR comments
1 parent 4b8cd08 commit 8a94176

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cns/service/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1712,7 +1712,8 @@ func createOrUpdateNodeInfoCRD(ctx context.Context, restConfig *rest.Config, nod
17121712
if homeAzResponse.Response.ReturnCode == cnstypes.Success && homeAzResponse.HomeAzResponse.IsSupported {
17131713
homeAZ = fmt.Sprintf("AZ%02d", homeAzResponse.HomeAzResponse.HomeAz)
17141714
} else {
1715-
return errors.New("home AZ not supported or CNS returned failure")
1715+
return fmt.Errorf("home AZ not available: homeAzResponse.Response.ReturnCode=%d, homeAzResponse.HomeAzResponse.IsSupported=%t",
1716+
homeAzResponse.Response.ReturnCode, homeAzResponse.HomeAzResponse.IsSupported)
17161717
}
17171718

17181719
directcli, err := client.New(restConfig, client.Options{Scheme: multitenancy.Scheme})

0 commit comments

Comments
 (0)