Skip to content

Commit c7d7f32

Browse files
Merge pull request #1 from zebraartefakt/me_sort_bricks
fix: Sort bricks before comparison
2 parents f164be1 + 0489060 commit c7d7f32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/volume.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178

179179
# our fact lists bricks comma-separated, but we need an array
180180
$vol_bricks = split( getvar( "::gluster_volume_${title}_bricks" ), ',')
181-
if $bricks != $vol_bricks {
181+
if sort($bricks) != sort($vol_bricks) {
182182
# this resource's list of bricks does not match the existing
183183
# volume's list of bricks
184184
$new_bricks = difference($bricks, $vol_bricks)

0 commit comments

Comments
 (0)