We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29df047 commit ac7a0feCopy full SHA for ac7a0fe
1 file changed
server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java
@@ -2382,13 +2382,13 @@ void performUnmanageVMInstancePrechecks(VMInstanceVO vmVO) {
2382
" as there is an ISO attached. Please detach ISO before unmanaging.");
2383
}
2384
2385
- if (belongsToCksCluster(vmVO)) {
+ if (isVmPartOfCKSCluster(vmVO)) {
2386
throw new UnsupportedServiceException("Cannot unmanage VM with id = " + vmVO.getUuid() +
2387
" as it belongs to a CKS cluster. Please remove the VM from the CKS cluster before unmanaging.");
2388
2389
2390
2391
- private boolean belongsToCksCluster(VMInstanceVO vmVO) {
+ private boolean isVmPartOfCKSCluster(VMInstanceVO vmVO) {
2392
return kubernetesServiceHelper.findByVmId(vmVO.getId()) != null;
2393
2394
0 commit comments