Skip to content

Commit

Permalink
Sort $bricks before comparing them with the vol_bricks fact (fixes vo…
Browse files Browse the repository at this point in the history
  • Loading branch information
coder-hugo committed May 17, 2017
1 parent fd8d698 commit f9da9cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/volume.pp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@

# our fact lists bricks comma-separated, but we need an array
$vol_bricks = getvar( "::gluster_volume_${title}_bricks" )
if $bricks != $vol_bricks {
if $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)
Expand Down

0 comments on commit f9da9cc

Please sign in to comment.