Skip to content

Commit

Permalink
remove aws_region requirement in checkargs
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Campbell <[email protected]>
  • Loading branch information
Todd Campbell committed Dec 2, 2020
1 parent 95139bc commit ff0b0dc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,6 @@ func checkArgs(event *corev2.Event) error {
if len(awsConfig.AwsInstanceID) == 0 {
return fmt.Errorf("aws-instance-id must contain a value")
}
if len(awsConfig.AwsRegion) == 0 {
return fmt.Errorf("aws-region must contain a value")
}
if len(awsConfig.AllowedInstanceStates) == 0 {
return fmt.Errorf("allowed-instance-states must contain at least one value")
}
Expand Down

0 comments on commit ff0b0dc

Please sign in to comment.