<fix>[kvm]: filter out stopped VM when invoke getVirtualizerInfo#6
Closed
MatheMatrix wants to merge 2 commits into4.8.0from
Closed
<fix>[kvm]: filter out stopped VM when invoke getVirtualizerInfo#6MatheMatrix wants to merge 2 commits into4.8.0from
MatheMatrix wants to merge 2 commits into4.8.0from
Conversation
Resolves: ZSTAC-61743 Change-Id: I657a6d777363616c7a6a68727a6a707a7672676e
Walkthrough在这次代码变更中,我们看到了对Java方法的一些调整,主要是在 Changes
TipsChat with CodeRabbit Bot (
|
There was a problem hiding this comment.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- plugin/kvm/src/main/java/org/zstack/kvm/hypervisor/datatype/ResourceHypervisorInfo.java (1 hunks)
Additional comments: 1
plugin/kvm/src/main/java/org/zstack/kvm/hypervisor/datatype/ResourceHypervisorInfo.java (1)
- 75-89: 代码更改正确地实现了过滤逻辑,以确保停止的虚拟机不会被包含在信息检索过程中。
from方法现在包含一个过滤操作,该操作在映射过程后排除任何null值。此外,mapResourceHypervisorInfo方法添加了一个新的条件检查,以处理null的vo参数,如果vo为null,则返回null。
Test Resolves: ZSTAC-1234 Change-Id: I6470677a6b6f7562796d66716c7a767476667374
806ed28 to
837f5e1
Compare
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves: ZSTAC-61743
Change-Id: I657a6d777363616c7a6a68727a6a707a7672676e
Summary by CodeRabbit
新功能
代码优化
测试