Skip to content

Commit

Permalink
fix issue where the the path was being validiated instead of the ami id
Browse files Browse the repository at this point in the history
  • Loading branch information
Guslington committed Oct 7, 2021
1 parent 8d25961 commit 0ba774b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bastion/ami.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func GetAndValidateAmi(sess *session.Session, input string) (string, error) {
if err != nil {
return "", err
}
if !ValidAmi(input) {
if !ValidAmi(ami) {
return "", errors.New("parameter value is not a valid ami")
}
return ami, nil
Expand Down

0 comments on commit 0ba774b

Please sign in to comment.