diff --git a/manifests/volume.pp b/manifests/volume.pp index 6198d5f8..fdf60517 100644 --- a/manifests/volume.pp +++ b/manifests/volume.pp @@ -171,7 +171,7 @@ # our fact lists bricks comma-separated, but we need an array $vol_bricks = split( getvar( "::gluster_volume_${title}_bricks" ), ',') - if $bricks != $vol_bricks { + if sort($bricks) != sort($vol_bricks) { # this resource's list of bricks does not match the existing # volume's list of bricks $new_bricks = difference($bricks, $vol_bricks)