mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #1543 from ioito/hotfix/qx-attach-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