Copilot commented on code in PR #12228:
URL: https://github.com/apache/cloudstack/pull/12228#discussion_r2731236953
##########
plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/KubernetesClusterManagerImpl.java:
##########
@@ -973,9 +973,12 @@ private Network getKubernetesClusterNetworkIfMissing(final
String clusterName, f
CallContext networkContext =
CallContext.register(CallContext.current(), ApiCommandResourceType.Network);
try {
+ Long zoneId = zone.getId();
Review Comment:
The variable 'zoneId' is only assigned values of primitive type and is never
'null', but it is declared with the boxed type 'Long'.
```suggestion
long zoneId = zone.getId();
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]