we don't require any of these execs, so we don't need them
This commit is contained in:
parent
69a63c5767
commit
49b127b80a
1 changed files with 1 additions and 8 deletions
|
@ -19,7 +19,6 @@ class assert_lsbdistcodename {
|
|||
case $lsbdistcodename {
|
||||
'': {
|
||||
err("Please install lsb_release or set facter_lsbdistcodename in the environment of $fqdn")
|
||||
exec { "false # assert_lsbdistcodename": alias => assert_lsbdistcodename }
|
||||
}
|
||||
'n/a': {
|
||||
case $operatingsystem {
|
||||
|
@ -32,15 +31,9 @@ class assert_lsbdistcodename {
|
|||
}
|
||||
exec { "false # assert_lsbdistcodename": alias => assert_lsbdistcodename }
|
||||
}
|
||||
default: {
|
||||
exec { "true # assert_lsbdistcodename": alias => assert_lsbdistcodename }
|
||||
exec { "true # require_lsbdistcodename": alias => require_lsbdistcodename }
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
# To fail the complete compilation, include this class
|
||||
class require_lsbdistcodename inherits assert_lsbdistcodename {
|
||||
exec { "false # require_lsbdistcodename": require => Exec[require_lsbdistcodename], }
|
||||
}
|
||||
class require_lsbdistcodename inherits assert_lsbdistcodename {}
|
||||
|
|
Loading…
Reference in a new issue