Skip to content

Commit

Permalink
Spleling (LeanerCloud#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwacky42 committed Apr 23, 2020
1 parent 8e04942 commit a37aafc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ const (
DetachTerminationMethod = "detach"

// TerminateTerminationNotificationAction terminate the spot instance, which will be terminated
// by AWS in 2 minutes, without reducing the ASG capcity, so that a new instance will
// by AWS in 2 minutes, without reducing the ASG capacity, so that a new instance will
// be launched. LifeCycle Hooks are triggered.
TerminateTerminationNotificationAction = "terminate"

// DetachTerminationNotificationAction detach the spot instance, which will be terminated
// by AWS in 2 minutes, without reducing the ASG capcity, so that a new instance will
// by AWS in 2 minutes, without reducing the ASG capacity, so that a new instance will
// be launched. LifeCycle Hooks are not triggered.
DetachTerminationNotificationAction = "detach"

Expand Down
2 changes: 1 addition & 1 deletion core/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ func (i *instance) launchSpotReplacement() error {

if err != nil {
if strings.Contains(err.Error(), "InsufficientInstanceCapacity") {
logger.Println("Couldn't launch spot instance due to lack of capcity, trying next instance type:", err.Error())
logger.Println("Couldn't launch spot instance due to lack of capacity, trying next instance type:", err.Error())
} else {
logger.Println("Couldn't launch spot instance:", err.Error(), "trying next instance type")
debug.Println(runInstancesInput)
Expand Down

0 comments on commit a37aafc

Please sign in to comment.