Remove unnecessary exec

When $custom_key_dir has not been assigned any value, a useless exec of
/bin/true is run. Remove this by using 'if' instead of 'case'.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
This commit is contained in:
Gabriel Filion 2010-10-18 01:43:24 -04:00
parent 8175bff077
commit 9736578481

View file

@ -79,11 +79,7 @@ class apt {
# backports uses the normal archive key now
package { "debian-backports-keyring": ensure => absent }
case $custom_key_dir {
'': {
exec { "/bin/true # no_custom_keydir": }
}
default: {
if $custom_key_dir {
file { "${apt_base_dir}/keys.d":
source => "$custom_key_dir",
recurse => true,
@ -96,7 +92,6 @@ class apt {
before => Config_file["apt_config"];
}
}
}
# workaround for preseeded_package component
file { [ "/var/cache", "/var/cache/local", "/var/cache/local/preseeding" ]: ensure => directory }