Skip to content

Commit

Permalink
Merge pull request #3492 from justinsb/fix_receiver_name
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue.

golint: rename two receievers for awsCloudImplementation
  • Loading branch information
Kubernetes Submit Queue authored Oct 1, 2017
2 parents bd4ba4d + cc97557 commit 84891f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions upup/pkg/fi/cloudup/awsup/aws_cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -756,13 +756,13 @@ func buildFilters(commonTags map[string]string, name *string) []*ec2.Filter {
}

// DescribeInstance is a helper that queries for the specified instance by id
func (t *awsCloudImplementation) DescribeInstance(instanceID string) (*ec2.Instance, error) {
func (c *awsCloudImplementation) DescribeInstance(instanceID string) (*ec2.Instance, error) {
glog.V(2).Infof("Calling DescribeInstances for instance %q", instanceID)
request := &ec2.DescribeInstancesInput{
InstanceIds: []*string{&instanceID},
}

response, err := t.EC2().DescribeInstances(request)
response, err := c.EC2().DescribeInstances(request)
if err != nil {
return nil, fmt.Errorf("error listing Instances: %v", err)
}
Expand All @@ -787,13 +787,13 @@ func (t *awsCloudImplementation) DescribeInstance(instanceID string) (*ec2.Insta
}

// DescribeVPC is a helper that queries for the specified vpc by id
func (t *awsCloudImplementation) DescribeVPC(vpcID string) (*ec2.Vpc, error) {
func (c *awsCloudImplementation) DescribeVPC(vpcID string) (*ec2.Vpc, error) {
glog.V(2).Infof("Calling DescribeVPC for VPC %q", vpcID)
request := &ec2.DescribeVpcsInput{
VpcIds: []*string{&vpcID},
}

response, err := t.EC2().DescribeVpcs(request)
response, err := c.EC2().DescribeVpcs(request)
if err != nil {
return nil, fmt.Errorf("error listing VPCs: %v", err)
}
Expand Down

0 comments on commit 84891f3

Please sign in to comment.