mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
fix(region): avoid panic (#19310)
This commit is contained in:
@@ -104,6 +104,7 @@ func (manager *SReservedipManager) ReserveIPWithDurationAndStatus(ctx context.Co
|
||||
ExpiredAt: expiredAt,
|
||||
Status: status,
|
||||
}
|
||||
rip.SetModelManager(manager, rip)
|
||||
if addrType == api.AddressTypeIPv6 {
|
||||
rip.Ip6Addr = ip
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user