test(inspec): fix reference to suse after gem train update

* https://github.com/inspec/train/pull/505
This commit is contained in:
Imran Iqbal 2019-08-20 22:01:20 +01:00
parent 766596e175
commit 677adbae16
2 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
# Overide by OS
# Overide by Platform
pg_port = '5432'
if os[:family] == 'debian' or os[:name] == 'suse'
if platform[:family] == 'debian' or platform[:family] == 'suse'
pg_port = '5433'
end

View file

@ -1,9 +1,9 @@
# Overide by OS
# Overide by Platform
service_name = 'postgresql'
pg_port = 5432
if os[:name] == 'centos' and os[:release].start_with?('6')
if platform[:name] == 'centos' and platform[:release].start_with?('6')
service_name = 'postgresql-9.6'
elsif os[:family] == 'debian' or os[:name] == 'suse'
elsif platform[:family] == 'debian' or platform[:family] == 'suse'
pg_port = 5433
end