diff --git a/lib/ansible/modules/storage/glusterfs/gluster_volume.py b/lib/ansible/modules/storage/glusterfs/gluster_volume.py index 9f2b7eb6ffc..fee9df787bd 100644 --- a/lib/ansible/modules/storage/glusterfs/gluster_volume.py +++ b/lib/ansible/modules/storage/glusterfs/gluster_volume.py @@ -548,7 +548,7 @@ def main(): if brick not in bricks_in_volume: new_bricks.append(brick) - if not new_bricks and len(all_bricks) < bricks_in_volume: + if not new_bricks and len(all_bricks) < len(bricks_in_volume): for brick in bricks_in_volume: if brick not in all_bricks: removed_bricks.append(brick)