Skip to content

Commit 73081e8

Browse files
committed
haproxy::backend: Always set $_sort_options_alphabetic
Without this there's a possiblity that the variable isn't defined. This leads to an unreferenced variable call in line 133.
1 parent b90a36e commit 73081e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

manifests/backend.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@
113113
if ('httpchk' in $options['option']) {
114114
warning('Overriding the value of $sort_options_alphabetic to "false" due to "httpchk" option defined')
115115
$_sort_options_alphabetic = false
116+
} else {
117+
$_sort_options_alphabetic = $picked_sort_options_alphabetic
116118
}
117119
} else {
118120
$_sort_options_alphabetic = $picked_sort_options_alphabetic

0 commit comments

Comments
 (0)