diff options
author | Nigel Babu <nigelb@redhat.com> | 2018-04-25 17:22:41 +0530 |
---|---|---|
committer | Nigel Babu <nigelb@redhat.com> | 2018-04-25 17:22:41 +0530 |
commit | cb9f6652962bf88f1061d981736e7e02e5608a23 (patch) | |
tree | 99a948a721122c9df80f48d9e2ec4a2f24b3cffa /glustolibs-gluster/glustolibs/gluster/brickmux_ops.py | |
parent | dc906e7451a920248e5a85fa4cf051758bc3fc6f (diff) |
Fix cyclic import in brickmux_ops.py
Change-Id: I487822efd6c57b8c51b65b4eaf149eb67e96731b
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/brickmux_ops.py')
-rw-r--r-- | glustolibs-gluster/glustolibs/gluster/brickmux_ops.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/brickmux_ops.py b/glustolibs-gluster/glustolibs/gluster/brickmux_ops.py index 2fa4687b9..3fcb4ee59 100644 --- a/glustolibs-gluster/glustolibs/gluster/brickmux_ops.py +++ b/glustolibs-gluster/glustolibs/gluster/brickmux_ops.py @@ -20,7 +20,7 @@ """ from glusto.core import Glusto as g -from glustolibs.gluster.brick_libs import get_all_bricks +import glustolibs.gluster.brick_libs from glustolibs.gluster.volume_ops import get_volume_status @@ -35,11 +35,10 @@ def is_brick_mux_enabled(mnode): """ cmd = ("gluster v get all all | grep cluster.brick-multiplex |" "awk '{print $2}'") - ret, out, err = g.run(mnode, cmd) + _, out, _ = g.run(mnode, cmd) if "enable" in out: return True - else: - return False + return False def enable_brick_mux(mnode): @@ -72,7 +71,8 @@ def check_brick_pid_matches_glusterfsd_pid(mnode, volname): bool : True if pid's matches. False otherwise. """ _rc = True - bricks_list = get_all_bricks(mnode, volname) + bricks_list = glustolibs.gluster.brick_libs.get_all_bricks(mnode, + volname) for brick in bricks_list: brick_node, brick_path = brick.split(":") ret = get_volume_status(mnode, volname) |