Use join() to concatrenate strings and ensure variables match
Change-Id: I2711c7d61a9c727c156d096a3412b49423df1323
This commit is contained in:
parent
a0ead49076
commit
2056e74df9
|
@ -18,7 +18,7 @@ $backend_name = 'pure'
|
||||||
$previous_backends = ''
|
$previous_backends = ''
|
||||||
|
|
||||||
class { 'plugin_purestorage_cinder::controller' :
|
class { 'plugin_purestorage_cinder::controller' :
|
||||||
backend => $backend_name,
|
backend_name => $backend_name,
|
||||||
backends => $previous_backends,
|
backends => $previous_backends,
|
||||||
multibackends => $plugin_settings['multibackend'],
|
multibackends => $plugin_settings['multibackend'],
|
||||||
glance_image_cache => $plugin_settings['pure_glance_image_cache'],
|
glance_image_cache => $plugin_settings['pure_glance_image_cache'],
|
||||||
|
|
|
@ -120,7 +120,7 @@ class plugin_purestorage_cinder::controller (
|
||||||
}
|
}
|
||||||
|
|
||||||
if $replication == 'true' {
|
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 {
|
cinder_config {
|
||||||
"$section/replication_device": value => "$DEVICE";
|
"$section/replication_device": value => "$DEVICE";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue