Skip to content

Commit f62921d

Browse files
committed
fix "cannot redefine $real_settings" error
Trying to use the apache_config class to apply settings to the apache SAPI fails with an error caused by a duplicate variable definition: Error while evaluating a Resource Statement, Evaluation Error: Cannot reassign variable '$real_settings' (file: /etc/puppetlabs/code/environments/development/modules/php/manifests/apache_config.pp, line: 18, column: 18)
1 parent 26b3624 commit f62921d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

manifests/apache_config.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
assert_private()
1717

18-
$real_settings = $real_settings = lookup('php::apache::settings', Hash, {'strategy' => 'deep', 'merge_hash_arrays' => true}, $settings)
18+
$real_settings = lookup('php::apache::settings', Hash, {'strategy' => 'deep', 'merge_hash_arrays' => true}, $settings)
1919

2020
php::config { 'apache':
2121
file => $inifile,

0 commit comments

Comments
 (0)