Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions manifests/volume.pp
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@
require => Exec["gluster create volume ${title}"],
}
}
} elsif $already_exists {
} elsif $already_exists and "gluster_volume_${title}_bricks" in $facts {
# this volume exists

if $ensure == 'present' {
# our fact lists bricks comma-separated, but we need an array
$vol_bricks = split( getvar( "::gluster_volume_${title}_bricks" ), ',')
$vol_bricks = split( $facts["gluster_volume_${title}_bricks"], ',')
if $bricks != $vol_bricks {
# this resource's list of bricks does not match the existing
# volume's list of bricks
Expand Down