mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-11-05 15:31:49 +08:00
fix disk resize
This commit is contained in:
@@ -726,10 +726,12 @@ func (self *SDisk) PerformResize(ctx context.Context, userCred mcclient.TokenCre
|
||||
}
|
||||
|
||||
guests := self.GetGuests()
|
||||
|
||||
var guest *SGuest
|
||||
if len(guests) == 1 {
|
||||
guest = &guests[0]
|
||||
}
|
||||
|
||||
return nil, self.StartDiskResizeTask(ctx, userCred, int64(sizeMb), "", &pendingUsage, guest)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user