Skip to content

Commit 2567f5d

Browse files
If the sequence in facts and settings is different
If the sequence in facts and settings is different exampe: [ 'gst02:/opt/share', 'gst03:/opt/share', 'gst01:/opt/share'] != [ 'gst01:/opt/share', 'gst02:/opt/share', 'gst03:/opt/share'] but in fact they are equal
1 parent 7405b17 commit 2567f5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/volume.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
if $ensure == 'present' {
164164
# our fact lists bricks comma-separated, but we need an array
165165
$vol_bricks = split( $facts["gluster_volume_${title}_bricks"], ',')
166-
if $bricks != $vol_bricks {
166+
if $bricks.sort != $vol_bricks.sort {
167167
# this resource's list of bricks does not match the existing
168168
# volume's list of bricks
169169
$new_bricks = difference($bricks, $vol_bricks)

0 commit comments

Comments
 (0)