Skip to content

Commit 0489060

Browse files
author
Martin Eichner
committed
fix: Sort bricks before comparison
1 parent f164be1 commit 0489060

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)