Skip to content

Commit 7c63b0d

Browse files
Update for Inspec 4 (#29)
Inspec 4 replaces default with value Signed-off-by: Michée Lengronne <[email protected]>
1 parent 6e61f4b commit 7c63b0d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

controls/ssl_test.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
invalid_targets = attribute(
2020
'invalid_targets',
21-
default: [
21+
value: [
2222
'127.0.0.1',
2323
'0.0.0.0',
2424
'::1',
@@ -30,19 +30,19 @@
3030
# Array of TCP ports to exclude from SSL checking. For example: [443, 8443]
3131
exclude_ports = attribute(
3232
'exclude_ports',
33-
default: [],
33+
value: [],
3434
description: 'Array of TCP ports to exclude from SSL checking'
3535
)
3636

3737
target_hostname = attribute(
3838
'target_hostname',
39-
default: command('hostname').stdout.strip,
39+
value: command('hostname').stdout.strip,
4040
description: 'Target hostname to check'
4141
)
4242

4343
force_ssl = attribute(
4444
'force_ssl',
45-
default: false,
45+
value: false,
4646
description: 'The profile should not check if SSL is enabled on every port and assume it is'
4747
)
4848

0 commit comments

Comments
 (0)