From 4271f69bc8538c507db59872cdd9f4a200f12c6f Mon Sep 17 00:00:00 2001 From: Matthew Durell Date: Thu, 28 Dec 2017 13:02:40 -0700 Subject: [PATCH] Sort bricks before comparison Resolves upstream issue #147 --- manifests/volume.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)