Skip to content

Commit c8de827

Browse files
committed
vrrp::instance::track_script: Enforce Array datatype 2
This is a followup of #322 and #319
1 parent d94054c commit c8de827

File tree

3 files changed

+2
-21
lines changed

3 files changed

+2
-21
lines changed

REFERENCE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,8 +1198,7 @@ Default value: `undef`
11981198
Data type: `Array[String[1]]`
11991199

12001200
Define which scripts to run to track service states.
1201-
May be specified either as a String with a single Scriptname,
1202-
or as an Array of Strings with multiple Scriptnames.
1201+
Must be specified as an Array of Strings with multiple Scriptnames.
12031202

12041203
Default value: `[]`
12051204

manifests/vrrp/instance.pp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@
8282
#
8383
# @param track_script
8484
# Define which scripts to run to track service states.
85-
# May be specified either as a String with a single Scriptname,
86-
# or as an Array of Strings with multiple Scriptnames.
85+
# Must be specified as an Array of Strings with multiple Scriptnames.
8786
#
8887
# @param track_process
8988
# Define which process trackers to run.

spec/defines/keepalived_vrrp_instance_spec.rb

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -370,23 +370,6 @@
370370
}
371371
end
372372

373-
describe 'with parameter track_script as a single String' do
374-
let(:params) do
375-
mandatory_params.merge(
376-
track_script: '_VALUE_'
377-
)
378-
end
379-
380-
it { is_expected.to create_keepalived__vrrp__instance('_NAME_') }
381-
382-
it {
383-
is_expected.to \
384-
contain_concat__fragment('keepalived.conf_vrrp_instance__NAME_').with(
385-
'content' => %r!^ track_script {\n _VALUE_!
386-
)
387-
}
388-
end
389-
390373
describe 'with parameter lvs_interface' do
391374
let(:params) do
392375
mandatory_params.merge(

0 commit comments

Comments
 (0)