diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2009-07-16 15:08:49 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2009-07-16 15:08:49 -0300 |
commit | 9e6cb5d208770c22708cf1960af1362cd4fdf323 (patch) | |
tree | 40235378ff71fe4ea21eb69946f1bde23b1b95fe | |
parent | 6e9ef2d08e8749e4d8f4ed9b73eeb51d94048321 (diff) | |
download | puppet-common-9e6cb5d208770c22708cf1960af1362cd4fdf323.tar.gz puppet-common-9e6cb5d208770c22708cf1960af1362cd4fdf323.tar.bz2 |
Avoiding exec error
Trying to force path so puppet doesn't issue the following error:
Could not create true # require_lsbdistcodename: 'true #
require_lsbdistcodename' is both unqualifed and specified no search path
at /etc/puppet/modules/common/manifests/classes/lsb_release.pp:40
-rw-r--r-- | manifests/classes/lsb_release.pp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/classes/lsb_release.pp b/manifests/classes/lsb_release.pp index 5745072..c08b8c2 100644 --- a/manifests/classes/lsb_release.pp +++ b/manifests/classes/lsb_release.pp @@ -33,11 +33,11 @@ class assert_lsbdistcodename { err("lsb_release was unable to report your distcodename; please set facter_lsbdistcodename in the environment of $fqdn") } } - exec { "false # assert_lsbdistcodename": alias => assert_lsbdistcodename, loglevel => err } + exec { "/bin/false # assert_lsbdistcodename": alias => assert_lsbdistcodename, loglevel => err } } default: { - exec { "true # assert_lsbdistcodename": alias => assert_lsbdistcodename, loglevel => debug } - exec { "true # require_lsbdistcodename": alias => require_lsbdistcodename, loglevel => debug } + exec { "/bin/true # assert_lsbdistcodename": alias => assert_lsbdistcodename, loglevel => debug } + exec { "/bin/true # require_lsbdistcodename": alias => require_lsbdistcodename, loglevel => debug } } } |