mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
Bug: Fix wrong return value handling in oneuser
This commit is contained in:
1 parent
706de92525
commit
124ba59cf5
1 file changed
+3
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user