Use join() to concatrenate strings and ensure variables match

Change-Id: I2711c7d61a9c727c156d096a3412b49423df1323
This commit is contained in:
Simon Dodsley 2016-05-17 15:51:20 -04:00
parent a0ead49076
commit 2056e74df9
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ $backend_name = 'pure'
$previous_backends = ''
class { 'plugin_purestorage_cinder::controller' :
backend => $backend_name,
backend_name => $backend_name,
backends => $previous_backends,
multibackends => $plugin_settings['multibackend'],
glance_image_cache => $plugin_settings['pure_glance_image_cache'],

View File

@ -120,7 +120,7 @@ class plugin_purestorage_cinder::controller (
}
if $replication == 'true' {
$DEVICE = "backend_id:" + $remote_array + ",san_ip:"+ $remote_ip + ",api_token:" + $remote_api
$DEVICE = join(["backend_id:" ,$remote_array,",san_ip:",$remote_ip,",api_token:",$remote_api],'')
cinder_config {
"$section/replication_device": value => "$DEVICE";
}