Strip amqp_hosts list to avoid whitespaces in the transport_url string

Change-Id: I429b8fc51585a90edfd04cef4c506d9af1ef77ab
Closes-bug: #1657506
This commit is contained in:
Vladimir Kuklin 2017-01-18 19:10:06 +03:00
parent 3a2cc9e24a
commit 86329c43f1
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ class osnailyfacter::globals::globals {
$rabbit_password = $real_rabbit_hash['password']
$transport_url = os_transport_url({
'transport' => 'rabbit',
'hosts' => split($amqp_hosts,','),
'hosts' => strip(split($amqp_hosts,',')),
'username' => $rabbit_user,
'password' => $rabbit_password,
})