From 3070312c13e02cace3041d3429b0c31fc10b73ee Mon Sep 17 00:00:00 2001 From: Nigel Babu Date: Wed, 16 Nov 2016 17:36:15 +0530 Subject: Clean up pyflakes and pep8 errors Change-Id: Ibdd092118d3bb912716c46fd278ef3c680a6e742 Signed-off-by: Nigel Babu --- glustolibs-gluster/glustolibs/gluster/brick_libs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'glustolibs-gluster/glustolibs/gluster/brick_libs.py') diff --git a/glustolibs-gluster/glustolibs/gluster/brick_libs.py b/glustolibs-gluster/glustolibs/gluster/brick_libs.py index 617419d9e..508eae6a9 100644 --- a/glustolibs-gluster/glustolibs/gluster/brick_libs.py +++ b/glustolibs-gluster/glustolibs/gluster/brick_libs.py @@ -22,7 +22,6 @@ import random from glusto.core import Glusto as g from glustolibs.gluster.volume_ops import (get_volume_info, get_volume_status) -from glustolibs.gluster.volume_libs import get_subvols def get_all_bricks(mnode, volname): @@ -232,7 +231,7 @@ def bring_bricks_online(mnode, volname, bricks_list, False otherwise """ rc = True - failed_to_brick_online_list = [] + failed_to_bring_online_list = [] for brick in bricks_list: bring_brick_online_method = random.choice(bring_bricks_online_methods) if bring_brick_online_method == 'glusterd_restart': @@ -337,6 +336,7 @@ def are_bricks_online(mnode, volname, bricks_list): g.log.info("All the bricks %s are online" % bricks_list) return True + def get_offline_bricks_list(mnode, volname): """Get list of bricks which are offline. -- cgit