Skip to content

Commit 47a5e8c

Browse files
committed
Refactor method name
1 parent 4ca9f14 commit 47a5e8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2382,13 +2382,13 @@ void performUnmanageVMInstancePrechecks(VMInstanceVO vmVO) {
23822382
" as there is an ISO attached. Please detach ISO before unmanaging.");
23832383
}
23842384

2385-
if (belongsToCksCluster(vmVO)) {
2385+
if (isVmPartOfCKSCluster(vmVO)) {
23862386
throw new UnsupportedServiceException("Cannot unmanage VM with id = " + vmVO.getUuid() +
23872387
" as it belongs to a CKS cluster. Please remove the VM from the CKS cluster before unmanaging.");
23882388
}
23892389
}
23902390

2391-
private boolean belongsToCksCluster(VMInstanceVO vmVO) {
2391+
private boolean isVmPartOfCKSCluster(VMInstanceVO vmVO) {
23922392
return kubernetesServiceHelper.findByVmId(vmVO.getId()) != null;
23932393
}
23942394

0 commit comments

Comments
 (0)