mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-01 05:22:24 +08:00
fix: build broken for changing GetNetworkOfIP to GetOnPremiseNetworkOfIP
This commit is contained in:
@@ -58,7 +58,11 @@ func init() {
|
||||
}
|
||||
|
||||
shellutils.R(&InstanceChangeConfigOptions{}, "instance-change-config", "Change instance config", func(cli *openstack.SRegion, args *InstanceChangeConfigOptions) error {
|
||||
return cli.ChageConfig(args.ID, args.FLAVOR_ID)
|
||||
instance, err := cli.GetInstance(args.ID)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return cli.ChangeConfig(instance, args.FLAVOR_ID)
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user