Skip to content

Commit 677adba

Browse files
committed
test(inspec): fix reference to suse after gem train update
* inspec/train#505
1 parent 766596e commit 677adba

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/integration/default/controls/command_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Overide by OS
1+
# Overide by Platform
22
pg_port = '5432'
3-
if os[:family] == 'debian' or os[:name] == 'suse'
3+
if platform[:family] == 'debian' or platform[:family] == 'suse'
44
pg_port = '5433'
55
end
66

test/integration/default/controls/services_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Overide by OS
1+
# Overide by Platform
22
service_name = 'postgresql'
33
pg_port = 5432
4-
if os[:name] == 'centos' and os[:release].start_with?('6')
4+
if platform[:name] == 'centos' and platform[:release].start_with?('6')
55
service_name = 'postgresql-9.6'
6-
elsif os[:family] == 'debian' or os[:name] == 'suse'
6+
elsif platform[:family] == 'debian' or platform[:family] == 'suse'
77
pg_port = 5433
88
end
99

0 commit comments

Comments
 (0)