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:
邱剑
2018-12-04 11:44:10 +08:00
+5 -4
View File
@@ -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
}