Skip to content

Commit 22d156a

Browse files
committed
vrrp::instance: track_process: Switch default undef->[]
1 parent 4be59bb commit 22d156a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

REFERENCE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,11 +1203,11 @@ Default value: `undef`
12031203

12041204
##### <a name="-keepalived--vrrp--instance--track_process"></a>`track_process`
12051205

1206-
Data type: `Optional[Array[String[1]]]`
1206+
Data type: `Array[String[1]]`
12071207

12081208
Define which process trackers to run.
12091209

1210-
Default value: `undef`
1210+
Default value: `[]`
12111211

12121212
##### <a name="-keepalived--vrrp--instance--track_file"></a>`track_file`
12131213

manifests/vrrp/instance.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206
$auth_type = undef,
207207
Optional[Variant[String, Sensitive[String]]] $auth_pass = undef,
208208
$track_script = undef,
209-
Optional[Array[String[1]]] $track_process = undef,
209+
Array[String[1]] $track_process = [],
210210
Array[String[1]] $track_file = [],
211211
Array[String[1]] $vrrp_track_file = [],
212212
$track_interface = undef,

templates/vrrp_instance.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ vrrp_instance <%= @_name %> {
105105
<%- end -%>
106106
}
107107
<%- end -%>
108-
<%- if @track_process -%>
108+
<%- unless @track_process.empty? -%>
109109

110110
track_process {
111-
<%- Array(@track_process).each do |track| -%>
111+
<%- @track_process.each do |track| -%>
112112
<%= track %>
113113
<%- end -%>
114114
}

0 commit comments

Comments
 (0)