From 0ba774b065baaaa317c6d19b03e5c15a2d412035 Mon Sep 17 00:00:00 2001 From: Guslington Date: Thu, 7 Oct 2021 15:17:33 +1100 Subject: [PATCH] fix issue where the the path was being validiated instead of the ami id --- bastion/ami.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bastion/ami.go b/bastion/ami.go index 650b5bf..041e2c9 100644 --- a/bastion/ami.go +++ b/bastion/ami.go @@ -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