Skip to content

Commit 8be02d1

Browse files
author
Joshua Hoblitt
committed
replace condition unless with if ! for puppet 2.7.x compat
1 parent ee08ab9 commit 8be02d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manifests/init.pp

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
class{ 'pureftpd::install': use_selinux => $use_selinux }
3232

33-
unless (empty($config_ldap)) {
33+
if ! empty($config_ldap) {
3434
# insert the path to the ldap conf file into pure-ftpd.conf
3535
$enable_ldap = { ldapconfigfile => $pureftpd::params::ldap_conf_path }
3636

@@ -46,7 +46,7 @@
4646
Class[ 'pureftpd::config::ldap' ]
4747
}
4848

49-
unless (empty($config_pgsql)) {
49+
if ! empty($config_pgsql) {
5050
# insert the path to the pgsql conf file into pure-ftpd.conf
5151
$enable_pgsql = { pgsqlconfigfile => $pureftpd::params::pgsql_conf_path }
5252

0 commit comments

Comments
 (0)