mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
fix(region): avoid openstack change config error
This commit is contained in:
@@ -462,7 +462,8 @@ func (instance *SInstance) ChangeConfig(ctx context.Context, config *cloudprovid
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "syncFlavor(%s)", config.InstanceType)
|
||||
}
|
||||
if flavor.Name == instance.Flavor.Name {
|
||||
// When resizing, instances must change flavor!
|
||||
if flavor.Name == instance.Flavor.OriginalName {
|
||||
return nil
|
||||
}
|
||||
return instance.host.zone.region.ChangeConfig(instance, flavor.Id)
|
||||
|
||||
Reference in New Issue
Block a user