Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Wrap apply_manifest into RSpec context; initialise litmus earlier
[puppet-modules/puppetlabs-apt.git]
/
manifests
/
init.pp
diff --git
a/manifests/init.pp
b/manifests/init.pp
index fcfb09c30de2ba94bdb25498747856aab2920210..a20748f4364da22559475dd67dcb605db47ef0df 100644
(file)
--- a/
manifests/init.pp
+++ b/
manifests/init.pp
@@
-157,7
+157,7
@@
class apt (
Boolean $sources_list_force = $apt::params::sources_list_force,
) inherits apt::params {
Boolean $sources_list_force = $apt::params::sources_list_force,
) inherits apt::params {
- if $facts['osfamily'] != 'Debian' {
+ if $facts['os
']['
family'] != 'Debian' {
fail(translate('This module only works on Debian or derivatives like Ubuntu'))
}
fail(translate('This module only works on Debian or derivatives like Ubuntu'))
}
@@
-329,7
+329,7
@@
class apt (
owner => $auth_conf_owner,
group => 'root',
mode => '0600',
owner => $auth_conf_owner,
group => 'root',
mode => '0600',
- content =>
"${confheadertmp}${auth_conf_tmp}"
,
+ content =>
Sensitive("${confheadertmp}${auth_conf_tmp}")
,
notify => Class['apt::update'],
}
}
notify => Class['apt::update'],
}
}