diff --git a/lib/trivial_backend_sgx_repo.rb b/lib/trivial_backend_sgx_repo.rb index c5843650a4ca2e11cf6c5b75728dc92355a625c0..6e5980b7324d320958df0e02e88f499a9d2c514a 100644 --- a/lib/trivial_backend_sgx_repo.rb +++ b/lib/trivial_backend_sgx_repo.rb @@ -24,7 +24,7 @@ class TrivialBackendSgxRepo def get(customer_id, tel: nil) @redis.get("jmp_customer_backend_sgx-#{customer_id}").then do |sgx_jid| - creds = sgx_jid ? CONFIG[:sgx_creds][sgx_jid] : @creds + creds = sgx_jid ? CONFIG[:sgx_creds][sgx_jid.to_sym] : @creds BackendSgx.new( jid: sgx_jid ? Blather::JID.new(sgx_jid) : @jid, creds: creds, from_jid: Blather::JID.new("customer_#{customer_id}", @component_jid),