Compare commits

..
Author SHA1 Message Date
Susmitha Girumala cd6e5bcd25 Update github test workflow permissions to read-only
Set GITHUB_TOKEN to read-only permission by default
2026-07-13 15:03:32 -04:00
+7 -7
View File
@@ -32,13 +32,6 @@ type HostPlugin struct {
testCatalogStateOpts []awsCatalogPersistedStateOption testCatalogStateOpts []awsCatalogPersistedStateOption
} }
type hostSetQuery struct {
Id string
Input *ec2.DescribeInstancesInput
Output *ec2.DescribeInstancesOutput
OutputHosts []*pb.ListHostsResponseHost
}
// Ensure that we are implementing HostPluginServiceServer // Ensure that we are implementing HostPluginServiceServer
var _ pb.HostPluginServiceServer = (*HostPlugin)(nil) var _ pb.HostPluginServiceServer = (*HostPlugin)(nil)
@@ -502,6 +495,13 @@ func (p *HostPlugin) ListHosts(ctx context.Context, req *pb.ListHostsRequest) (*
} }
// Build all the queries in advance. // Build all the queries in advance.
type hostSetQuery struct {
Id string
Input *ec2.DescribeInstancesInput
Output *ec2.DescribeInstancesOutput
OutputHosts []*pb.ListHostsResponseHost
}
queries := make([]hostSetQuery, len(sets)) queries := make([]hostSetQuery, len(sets))
for i, set := range sets { for i, set := range sets {
// Validate Id since we use it in output // Validate Id since we use it in output