Fix support for puppetlabs-stdlib<4.2.0

Support for non-array value in the function concat() was added
in puppetlabs-stdlib 4.2.0.

This change adds a fix to support puppetlabs-stdlib<4.2.0
by converting $host to an array.

Change-Id: Ib8e4c7a5f788d1e0bd7440bc93b560df8e39fcf4
This commit is contained in:
Mathieu Gagné
2014-09-29 17:26:56 -04:00
parent a71ac3d371
commit 6fbbd778eb

View File

@@ -56,7 +56,7 @@ define openstacklib::db::mysql (
require => [ Class['mysql::server'], Class['mysql::client'] ],
}
$allowed_hosts_list = unique(concat(any2array($allowed_hosts), $host))
$allowed_hosts_list = unique(concat(any2array($allowed_hosts), [$host]))
$real_allowed_hosts = prefix($allowed_hosts_list, "${dbname}_")
openstacklib::db::mysql::host_access { $real_allowed_hosts: