mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Bug: Fix wrong return value handling in oneuser
(cherry picked from commit 124ba59cf5e663db0929710249de526af38430de)
This commit is contained in:
parent
df90e53dce
commit
3c10a8ed60
@ -117,12 +117,11 @@ class OneUserHelper < OpenNebulaHelper::OneHelper
|
||||
begin
|
||||
proxy = File.read(options[:proxy])
|
||||
|
||||
rc = proxy.scan(/(-+BEGIN CERTIFICATE-+\n[^-]*\n-+END CERTIFICATE-+)/)
|
||||
certs = rc.flatten!
|
||||
certs = proxy.scan(/(-+BEGIN CERTIFICATE-+\n[^-]*\n-+END CERTIFICATE-+)/)
|
||||
certs.flatten!
|
||||
|
||||
rc = proxy.match(/(-+BEGIN RSA PRIVATE KEY-+\n[^-]*\n-+END RSA PRIVATE KEY-+)/)
|
||||
|
||||
key = rc[1]
|
||||
key= rc[1]
|
||||
|
||||
auth = X509Auth.new(:certs_pem=>certs, :key_pem=>key)
|
||||
rescue => e
|
||||
|
Loading…
x
Reference in New Issue
Block a user