Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ciprian Hacman <ciprianhacman@gmail.com>
  • Loading branch information
bharath-123 and hakman authored Dec 4, 2020
1 parent 1303ba3 commit d9b29b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion cloudmock/aws/mockec2/launch_templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ func (m *MockEC2) CreateLaunchTemplate(request *ec2.CreateLaunchTemplateInput) (
Name: request.LaunchTemplateData.IamInstanceProfile.Name,
}
}

if request.LaunchTemplateData.InstanceMarketOptions != nil {
resp.InstanceMarketOptions = &ec2.LaunchTemplateInstanceMarketOptions{
MarketType: request.LaunchTemplateData.InstanceMarketOptions.MarketType,
Expand Down
4 changes: 2 additions & 2 deletions upup/pkg/fi/cloudup/awstasks/launchconfiguration.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ type LaunchConfiguration struct {
Tenancy *string
// UserData is the user data configuration
UserData *fi.ResourceHolder
// HTTPTokens is an enum which if set to "required" ensure that EC2 IMDv1 is disabled and only IMDv2 is used
// HTTPTokens is the state of token usage for your instance metadata requests.
HTTPTokens *string
// HTTPPutResponseHopLimit is the max no of hops made by the PUT request which fetches the token (default '1')
// HTTPPutResponseHopLimit is the desired HTTP PUT response hop limit for instance metadata requests.
HTTPPutResponseHopLimit *int64
}

Expand Down

0 comments on commit d9b29b9

Please sign in to comment.