Skip to content

Commit fa5472f

Browse files
committed
(CONT-772) Addressing legacy fact
1 parent 6b72635 commit fa5472f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/acceptance/vhost_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ class { 'apache':
1010
default_ssl_vhost => false,
1111
service_ensure => stopped,
1212
}
13-
if ($::osfamily == 'Suse' and $::operatingsystemrelease < '15') {
13+
if ($facts['os']['family'] == 'Suse' and $::operatingsystemrelease < '15') {
1414
exec { '/usr/bin/gensslcert':
1515
require => Class['apache'],
1616
}
17-
} elsif ($::osfamily == 'Suse' and $::operatingsystemrelease >= '15') {
17+
} elsif ($facts['os']['family'] == 'Suse' and $::operatingsystemrelease >= '15') {
1818
# In SLES 15, if not given a name, gensslcert defaults the name to be the hostname
1919
exec { '/usr/bin/gensslcert -n default':
2020
require => Class['apache'],

0 commit comments

Comments
 (0)