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 Aug 3, 2017
1 parent 6187b8f commit c464729
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 @@ -165,7 +165,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 c464729

Please sign in to comment.