mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
Merge pull request #648 in YUNIONIO/onecloud from ~QUXUAN/onecloud:hotfix/qx-eip-conflict-resolve-2.4.0 to release/2.4.0
* commit '3fdc72b1647435b9914222f851faaf3ef919df98': 修复qcloudcli eip命令参数缺失
This commit is contained in:
@@ -7,12 +7,13 @@ import (
|
||||
|
||||
func init() {
|
||||
type EipListOptions struct {
|
||||
Eip string `help:"EIP ID"`
|
||||
Offset int `help:"List offset"`
|
||||
Limit int `help:"List limit"`
|
||||
Eip string `help:"EIP ID"`
|
||||
InstanceId string `help:"Instance Id"`
|
||||
Offset int `help:"List offset"`
|
||||
Limit int `help:"List limit"`
|
||||
}
|
||||
shellutils.R(&EipListOptions{}, "eip-list", "List eips", func(cli *qcloud.SRegion, args *EipListOptions) error {
|
||||
eips, total, err := cli.GetEips(args.Eip, "", args.Offset, args.Limit)
|
||||
eips, total, err := cli.GetEips(args.Eip, args.InstanceId, args.Offset, args.Limit)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user