Skip to content

Commit

Permalink
vrrp::instance: track_process: Switch default undef->[]
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Mar 12, 2024
1 parent 4be59bb commit 8a1f990
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@ Default value: `undef`

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

Data type: `Optional[Array[String[1]]]`
Data type: `Array[String[1]]`

Define which process trackers to run.

Expand Down
2 changes: 1 addition & 1 deletion manifests/vrrp/instance.pp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
$auth_type = undef,
Optional[Variant[String, Sensitive[String]]] $auth_pass = undef,
$track_script = undef,
Optional[Array[String[1]]] $track_process = undef,
Array[String[1]] $track_process = undef,
Array[String[1]] $track_file = [],
Array[String[1]] $vrrp_track_file = [],
$track_interface = undef,
Expand Down
4 changes: 2 additions & 2 deletions templates/vrrp_instance.erb
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ vrrp_instance <%= @_name %> {
<%- end -%>
}
<%- end -%>
<%- if @track_process -%>
<%- unless @track_process.empty? -%>

track_process {
<%- Array(@track_process).each do |track| -%>
<%- @track_process.each do |track| -%>
<%= track %>
<%- end -%>
}
Expand Down

0 comments on commit 8a1f990

Please sign in to comment.