Merge pull request #78498 from M00nF1sh/ec2_filter_nil

fix bug that awsSDKGO expect nil instead empty slice for ec2.Describe…
k3s-v1.15.3
Kubernetes Prow Robot 2019-06-01 04:44:30 -07:00 committed by GitHub
commit d00aed8a65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ func (c *instanceCache) describeAllInstancesUncached() (*allInstancesSnapshot, e
klog.V(4).Infof("EC2 DescribeInstances - fetching all instances")
filters := []*ec2.Filter{}
var filters []*ec2.Filter
instances, err := c.cloud.describeInstances(filters)
if err != nil {
return nil, err