mirror of
https://github.com/LamGC/oracle-manager.git
synced 2025-04-29 22:27:33 +00:00
fix: 修复已绑定的保留 IP 显示在可更换列表中.
之前条件设置有误, 现已修复该问题.
This commit is contained in:
parent
a64a67b8d9
commit
7b42b45372
@ -460,8 +460,11 @@ class OracleServerExtension(private val bot: BaseAbilityBot) : AbilityExtension
|
|||||||
.lifetime(ListPublicIpsRequest.Lifetime.Reserved)
|
.lifetime(ListPublicIpsRequest.Lifetime.Reserved)
|
||||||
.build()
|
.build()
|
||||||
).items.filter {
|
).items.filter {
|
||||||
it.lifecycleState != PublicIp.LifecycleState.Available ||
|
it.privateIpId == null &&
|
||||||
it.lifecycleState != PublicIp.LifecycleState.Unassigned
|
(
|
||||||
|
it.lifecycleState == PublicIp.LifecycleState.Available ||
|
||||||
|
it.lifecycleState == PublicIp.LifecycleState.Unassigned
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (publicIps.isEmpty()) {
|
if (publicIps.isEmpty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user