mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 00:07:50 +00:00
Remove unused method.
This commit is contained in:
parent
f71533ce20
commit
4407ca9a64
@ -1975,22 +1975,6 @@ func (s *AWSCloud) UpdateTCPLoadBalancer(name, region string, hosts []string) er
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Make efficient
|
|
||||||
func (a *AWSCloud) getInstancesByIds(ids []string) ([]*ec2.Instance, error) {
|
|
||||||
instances := []*ec2.Instance{}
|
|
||||||
for _, id := range ids {
|
|
||||||
instance, err := a.getInstanceById(id)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if instance == nil {
|
|
||||||
return nil, fmt.Errorf("unable to find instance " + id)
|
|
||||||
}
|
|
||||||
instances = append(instances, instance)
|
|
||||||
}
|
|
||||||
return instances, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Returns the instance with the specified ID
|
// Returns the instance with the specified ID
|
||||||
func (a *AWSCloud) getInstanceById(instanceID string) (*ec2.Instance, error) {
|
func (a *AWSCloud) getInstanceById(instanceID string) (*ec2.Instance, error) {
|
||||||
request := &ec2.DescribeInstancesInput{
|
request := &ec2.DescribeInstancesInput{
|
||||||
|
Loading…
Reference in New Issue
Block a user