Skip to content

Commit

Permalink
Merge pull request #10 from base2Services/feature/ssm-param-ami-looku…
Browse files Browse the repository at this point in the history
…p-fix

fix issue where the the path was being validiated instead of the ami id
  • Loading branch information
Guslington authored Oct 7, 2021
2 parents 8d25961 + 0ba774b commit 99eb25c
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 99eb25c

Please sign in to comment.