Fix credentials file parameter on awskms

This commit is contained in:
Mariano Cano 2021-06-11 21:40:04 -07:00
parent 35ede74ea7
commit c4d0c8a18e

View file

@ -85,7 +85,7 @@ func New(ctx context.Context, opts apiv1.Options) (*KMS, error) {
*o.Config.Region = v *o.Config.Region = v
} }
if f := u.Get("credentials-file"); f != "" { if f := u.Get("credentials-file"); f != "" {
o.SharedConfigFiles = []string{opts.CredentialsFile} o.SharedConfigFiles = []string{f}
} }
} }