mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
ctyun attach disk fix
This commit is contained in:
@@ -166,6 +166,13 @@ func (self *SInstance) Refresh() error {
|
||||
return cloudprovider.ErrNotFound
|
||||
}
|
||||
|
||||
// update details
|
||||
detail, err := self.host.zone.region.GetVMDetails(self.GetId())
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "SInstance.Refresh.GetDetails")
|
||||
}
|
||||
|
||||
self.vmDetails = detail
|
||||
return jsonutils.Update(self, new)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user