Skip to content

Commit

Permalink
SSM
Browse files Browse the repository at this point in the history
  • Loading branch information
chaudharysaket committed Apr 16, 2024
1 parent 1b64510 commit fd65fc1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions checks/sanity_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ func sanityCheck(ctx context.Context, conf *config.Configuration, res *api.Regis
defer cancelSecret()
isSecretConfigured := credentials.IsSecretConfigured(ctxSecret, conf)

ctxSMParameter, cancelSMParameter := context.WithTimeout(ctx, timeout)
defer cancelSMParameter()
ctxSSMParameter, cancelSSMParameter := context.WithTimeout(ctx, timeout)
defer cancelSSMParameter()

isSSMParameterConfigured := false
if conf.LicenseKeySSMParameterName != "" {
isSSMParameterConfigured = credentials.IsSSMParameterConfigured(ctxSMParameter, conf)
isSSMParameterConfigured = credentials.IsSSMParameterConfigured(ctxSSMParameter, conf)
}


Expand Down

0 comments on commit fd65fc1

Please sign in to comment.