e2e ListHosts test was working off multiple sets with a single tag

This commit is contained in:
Chris Marchesi committed 2021-11-18 11:18:32 -08:00
1 parent 07270a7457
commit 5777870592
1 file changed
+2 -2
+2 -2
View File
@@ -510,9 +510,9 @@ func testPluginListHosts(ctx context.Context, t *testing.T, p *AwsPlugin, region
})
require.NoError(err)
sets := make([]*hostsets.HostSet, len(tags))
for i := range tags {
for i, tag := range tags {
setAttrs, err := structpb.NewStruct(map[string]interface{}{
constDescribeInstancesFilters: []interface{}{fmt.Sprintf("tag-key=%s", strings.Join(tags, ","))},
constDescribeInstancesFilters: []interface{}{fmt.Sprintf("tag-key=%s", tag)},
})
require.NoError(err)
sets[i] = &hostsets.HostSet{