Skip to content

Commit e5ced74

Browse files
fix: define settings similar to what was in old erb
1 parent 2819839 commit e5ced74

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

templates/web/zabbix.conf.php.epp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ $SSO['SP_CERT'] = '<%= $saml_sp_cert -%>';
7878
$SSO['IDP_CERT'] = '<%= $saml_idp_cert -%>';
7979
<% } -%>
8080
<% unless empty($saml_settings) { -%>
81-
$SSO['SETTINGS'] = [ <%= String($saml_settings,'%[h') %>;
81+
$SSO['SETTINGS'] = [ <%= to_json_pretty($saml_settings, undef, {space_before => " "})
82+
.regsubst("{", "")
83+
.regsubst(" : ", " => ",'G')
84+
.regsubst("{", "[",'G')
85+
.regsubst("}", "]",'G') -%>;
8286
<% } -%>
8387
?>

0 commit comments

Comments
 (0)