Skip to content

Commit 99eb25c

Browse files
authored
Merge pull request #10 from base2Services/feature/ssm-param-ami-lookup-fix
fix issue where the the path was being validiated instead of the ami id
2 parents 8d25961 + 0ba774b commit 99eb25c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bastion/ami.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func GetAndValidateAmi(sess *session.Session, input string) (string, error) {
2727
if err != nil {
2828
return "", err
2929
}
30-
if !ValidAmi(input) {
30+
if !ValidAmi(ami) {
3131
return "", errors.New("parameter value is not a valid ami")
3232
}
3333
return ami, nil

0 commit comments

Comments
 (0)