fix bug that awsSDKGO expect nil instead empty slice for ec2.DescribeInstances

This commit is contained in:
M00nF1sh 2019-05-29 13:11:35 -07:00
parent 472b9011d5
commit 8c387e3930

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