Skip to content

Commit 06ffbff

Browse files
authored
Merge pull request #788 from PolaricEntropy/skip-redhat-version-check-on-unsupported-os
Make RedHat version check respect acknowledge_unsupported_os
2 parents 611d6ec + 248cbeb commit 06ffbff

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

manifests/init.pp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,10 +485,9 @@
485485
assert_type(Pattern[/^(Debian|RedHat|windows)$/], $facts['os']['family']) |$a, $b| {
486486
fail('This module only works on Debian, Red Hat or Windows based systems.')
487487
}
488-
}
489-
490-
if ($facts['os']['family'] == 'RedHat') and (versioncmp($facts['os']['release']['major'], '7') < 0) {
491-
fail('This module only works on Red Hat based systems version 7 and higher.')
488+
if ($facts['os']['family'] == 'RedHat') and (versioncmp($facts['os']['release']['major'], '7') < 0) {
489+
fail('This module only works on Red Hat based systems version 7 and higher.')
490+
}
492491
}
493492

494493
if ($default_gateway) and (!$bridge) {

0 commit comments

Comments
 (0)