diff --git a/provider/aliyun/aliyun_discover.go b/provider/aliyun/aliyun_discover.go index 0ba2a292..39d2be4c 100644 --- a/provider/aliyun/aliyun_discover.go +++ b/provider/aliyun/aliyun_discover.go @@ -71,11 +71,8 @@ func (p *Provider) Addrs(args map[string]string, l *log.Logger) ([]string, error resp, err := svc.DescribeInstancesWithRaw(&ecs.DescribeInstancesArgs{ RegionId: common.Region(region), Status: ecs.Running, - Tag: []ecs.TagType{ - { - Key: tagKey, - Value: tagValue, - }, + Tag: map[string]string{ + tagKey: tagValue, }}, )