We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ae43a34 + 2cff3f1 commit 1a8c1cdCopy full SHA for 1a8c1cd
manifests/volume.pp
@@ -157,12 +157,12 @@
157
require => Exec["gluster create volume ${title}"],
158
}
159
160
- } elsif $already_exists {
+ } elsif $already_exists and "gluster_volume_${title}_bricks" in $facts {
161
# this volume exists
162
163
if $ensure == 'present' {
164
# our fact lists bricks comma-separated, but we need an array
165
- $vol_bricks = split( getvar( "::gluster_volume_${title}_bricks" ), ',')
+ $vol_bricks = split( $facts["gluster_volume_${title}_bricks"], ',')
166
if $bricks != $vol_bricks {
167
# this resource's list of bricks does not match the existing
168
# volume's list of bricks
0 commit comments