Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaab committed Sep 17, 2020
1 parent 5e07c83 commit 20e90e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upup/pkg/fi/cloudup/awsup/aws_cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ func addCloudInstanceData(cm *cloudinstances.CloudInstance, instance *ec2.Instan
}

func findInstances(c AWSCloud, ig *kops.InstanceGroup) (map[string]*ec2.Instance, error) {
clusterName, _ := c.Tags()[TagClusterName]
clusterName := c.Tags()[TagClusterName]
req := &ec2.DescribeInstancesInput{
Filters: []*ec2.Filter{
NewEC2Filter("tag:"+identity_aws.CloudTagInstanceGroupName, ig.ObjectMeta.Name),
Expand All @@ -873,7 +873,7 @@ func findInstances(c AWSCloud, ig *kops.InstanceGroup) (map[string]*ec2.Instance
}

func findDetachedInstances(c AWSCloud, g *autoscaling.Group) ([]*string, error) {
clusterName, _ := c.Tags()[TagClusterName]
clusterName := c.Tags()[TagClusterName]
req := &ec2.DescribeInstancesInput{
Filters: []*ec2.Filter{
NewEC2Filter("tag:"+tagNameDetachedInstance, aws.StringValue(g.AutoScalingGroupName)),
Expand Down

0 comments on commit 20e90e5

Please sign in to comment.