From fb3d0a82f6ca388b587b6cfe79bc62a0faea1a10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Czern=C3=BD?= <pczerny@opennebula.io> Date: Wed, 12 Jun 2024 10:35:55 +0200 Subject: [PATCH] M #-: Fix x509 authentication (#2945) (#3104) In case of empty file the output of YAML::load depends on 'yaml' gem version, it can be nil or false --- src/authm_mad/remotes/x509/x509_auth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authm_mad/remotes/x509/x509_auth.rb b/src/authm_mad/remotes/x509/x509_auth.rb index 2e1f91f378..de03a7f3d3 100644 --- a/src/authm_mad/remotes/x509/x509_auth.rb +++ b/src/authm_mad/remotes/x509/x509_auth.rb @@ -145,7 +145,7 @@ private conf_txt = File.read(conf_file) conf_opt = YAML::load(conf_txt) - @options.merge!(conf_opt) if conf_opt != false + @options.merge!(conf_opt) if conf_opt end end