summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/lib_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/lib_utils.py')
-rwxr-xr-xglustolibs-gluster/glustolibs/gluster/lib_utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/lib_utils.py b/glustolibs-gluster/glustolibs/gluster/lib_utils.py
index 95be23e..29172b2 100755
--- a/glustolibs-gluster/glustolibs/gluster/lib_utils.py
+++ b/glustolibs-gluster/glustolibs/gluster/lib_utils.py
@@ -397,7 +397,8 @@ def get_servers_unused_bricks_dict(mnode, servers, servers_info):
for key, value in list(dict1.items()):
if key in dict2:
unused_bricks = list(set(value) - set(dict2[key]))
- servers_unused_bricks_dict[key] = unused_bricks
+ if unused_bricks:
+ servers_unused_bricks_dict[key] = unused_bricks
else:
servers_unused_bricks_dict[key] = value