Skip to content

Commit 68dc8fc

Browse files
author
Joshua Hoblitt
committed
remove bundled pureftpd_merge() function
The pureftpd_merge() function included in this module is a copy of the stdlib merge() function from commit id f496005bf3db8a5202bf9c16daf9a524b178c67a. This version of merge() includes a critical bug fix that was commit after the stdlib 4.1.0 release. Now that stdlib 4.2.0 has been released (finally!) with the needed fix, bundling a version of the merge() function in this module is no longer necessary.
1 parent 95265a0 commit 68dc8fc

File tree

4 files changed

+6
-44
lines changed

4 files changed

+6
-44
lines changed

.fixtures.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ fixtures:
22
repositories:
33
"stdlib":
44
repo: "git://github.com/puppetlabs/puppetlabs-stdlib.git"
5-
ref: "4.0.0"
5+
ref: "4.2.0"
66
symlinks:
77
"pureftpd": "#{source_dir}"

Modulefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ project_page 'https://github.com/jhoblitt/puppet-pureftpd'
77
source 'https://github.com/jhoblitt/puppet-pureftpd.git'
88
summary 'Manages the pure-ftpd package with comprehensive configuration support'
99
description 'Manages the pure-ftpd package with comprehensive configuration support'
10-
dependency 'puppetlabs/stdlib', '>= 4.0.0'
10+
dependency 'puppetlabs/stdlib', '>= 4.2.0'

lib/puppet/parser/functions/pureftpd_merge.rb

-38
This file was deleted.

manifests/init.pp

+4-4
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
$enable_ldap = { ldapconfigfile => $pureftpd::params::ldap_conf_path }
6363

6464
# instantiate a pureftpd::config::ldap that will notify the service class
65-
$safe_config_ldap = pureftpd_merge($config_ldap,
65+
$safe_config_ldap = merge($config_ldap,
6666
{ notify => Class[ 'pureftpd::service' ] }
6767
)
6868
create_resources( 'class',
@@ -80,7 +80,7 @@
8080
$enable_mysql = { mysqlconfigfile => $pureftpd::params::mysql_conf_path }
8181

8282
# instantiate a pureftpd::config::mysql that will notify the service class
83-
$safe_config_mysql = pureftpd_merge($config_mysql,
83+
$safe_config_mysql = merge($config_mysql,
8484
{ notify => Class[ 'pureftpd::service' ] }
8585
)
8686
create_resources( 'class',
@@ -98,7 +98,7 @@
9898
$enable_pgsql = { pgsqlconfigfile => $pureftpd::params::pgsql_conf_path }
9999

100100
# instantiate a pureftpd::config::mysql will notify the service class
101-
$safe_config_pgsql = pureftpd_merge($config_pgsql,
101+
$safe_config_pgsql = merge($config_pgsql,
102102
{ notify => Class[ 'pureftpd::service' ] }
103103
)
104104
create_resources( 'class',
@@ -112,7 +112,7 @@
112112
Class[ 'pureftpd::config::pgsql' ]
113113
}
114114

115-
$safe_config = pureftpd_merge(
115+
$safe_config = merge(
116116
$config,
117117
{ notify => Class[ 'pureftpd::service' ] },
118118
$enable_ldap,

0 commit comments

Comments
 (0)