mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-29 17:58:36 +08:00
fix not set guest status after attach or detach disk
This commit is contained in:
@@ -78,4 +78,12 @@ func init() {
|
||||
return cli.ChangeConfig(instance, args.FLAVOR_ID)
|
||||
})
|
||||
|
||||
type InstanceDiskOptions struct {
|
||||
ID string `help:"Instance ID"`
|
||||
DISK string `help:"DiskId"`
|
||||
}
|
||||
|
||||
shellutils.R(&InstanceDiskOptions{}, "instance-detach-disk", "Detach instance disk", func(cli *openstack.SRegion, args *InstanceDiskOptions) error {
|
||||
return cli.DetachDisk(args.ID, args.DISK)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user