Skip to content

Commit

Permalink
BZ #1259495 Puppet fails when adding both Eqlx and Compellent as true
Browse files Browse the repository at this point in the history
https://bugzilla.redhat.com/show_bug.cgi?id=1259495

Fixed the code path to use unique variables as pupet doesn't
allow the variable to be reassigned to fix the puppet error and
enable eqlx and compellant to be used for multibackend scenario
  • Loading branch information
rajinir committed Sep 2, 2015
1 parent a6ed192 commit d52c01f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions puppet/modules/quickstack/manifests/cinder_volume.pp
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,13 @@

if str2bool_i("$backend_eqlx") {

$count = size($backend_eqlx_name)
$last = $count -1
$eqlx_backends = produce_array_with_prefix("eqlx",1,$count) #Initialize with section headers
$count2 = size($backend_eqlx_name)
$last2 = $count2 -1
$eqlx_backends = produce_array_with_prefix("eqlx",1,$count2) #Initialize with section headers

# FIXME: with newer parser we should use `each` (with index) instead
quickstack::eqlx::volume { $last:
index => $last,
quickstack::eqlx::volume { $last2:
index => $last2,
backend_section_name_array => $eqlx_backends,
backend_eqlx_name_array => $backend_eqlx_name,
san_ip_array => $san_ip,
Expand All @@ -294,14 +294,14 @@

if str2bool_i("$backend_netapp") {

$count = size($backend_netapp_name)
$last = $count -1
$netapp_backends = produce_array_with_prefix("netapp",1,$count)
$count3 = size($backend_netapp_name)
$last3 = $count3 -1
$netapp_backends = produce_array_with_prefix("netapp",1,$count3)


# FIXME: with newer parser we should use `each` (with index) instead
quickstack::netapp::volume { $last:
index => $last,
quickstack::netapp::volume { $last3:
index => $last3,
backend_netapp_name_array => $netapp_backends,
netapp_hostname_array => $netapp_hostname,
netapp_login_array => $netapp_login,
Expand Down

0 comments on commit d52c01f

Please sign in to comment.