From 93e1f48cbd6dcf5e454263c9647ff0a5da73b00d Mon Sep 17 00:00:00 2001 From: rainzm Date: Fri, 7 May 2021 18:27:35 +0800 Subject: [PATCH] fix(devtool): add scope=system query when list proxy endpoints --- pkg/devtool/utils/influxdb_url.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/devtool/utils/influxdb_url.go b/pkg/devtool/utils/influxdb_url.go index c4826bc1cd..827763110d 100644 --- a/pkg/devtool/utils/influxdb_url.go +++ b/pkg/devtool/utils/influxdb_url.go @@ -65,6 +65,7 @@ func proxyEndpoints(ctx context.Context, proxyEndpointId string, info sServerInf for _, netId := range info.NetworkIds { filter := jsonutils.NewDict() filter.Set("network_id", jsonutils.NewString(netId)) + filter.Set("scope", jsonutils.NewString("system")) lr, err := cloudproxy.ProxyEndpoints.List(session, filter) if err != nil { return nil, errors.Wrapf(err, "unable to list proxy endpoint in network %q", netId) @@ -81,6 +82,7 @@ func proxyEndpoints(ctx context.Context, proxyEndpointId string, info sServerInf } filter := jsonutils.NewDict() filter.Set("vpc_id", jsonutils.NewString(info.VpcId)) + filter.Set("scope", jsonutils.NewString("system")) lr, err := cloudproxy.ProxyEndpoints.List(session, filter) if err != nil { return nil, errors.Wrapf(err, "unable to list proxy endpoint in vpc %q", info.VpcId)