summaryrefslogtreecommitdiffstats
path: root/tools/glusterfind/src/nodeagent.py
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2018-08-22 02:05:59 -0400
committerAravinda VK <avishwan@redhat.com>2018-08-23 05:29:31 +0000
commitbc61ee44a3f8a9bf0490605f62ec27fcd6a5b8d0 (patch)
tree06ddf9411bb89fcf0da98e9b10856b7fc5f4307e /tools/glusterfind/src/nodeagent.py
parent2ccade56483a5e511b8f8089c7f3b27080484b76 (diff)
glusterfind: Fix problems in python2 -> python3 compat
1. Import configparser module correctly 2. Fix issues with urllib usage Updates: #411 Change-Id: I060af29f1ebac3a5e2aeeee2720b7372d4c31697 Signed-off-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'tools/glusterfind/src/nodeagent.py')
-rw-r--r--tools/glusterfind/src/nodeagent.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/glusterfind/src/nodeagent.py b/tools/glusterfind/src/nodeagent.py
index 4aed0e2ad96..c2996da78b5 100644
--- a/tools/glusterfind/src/nodeagent.py
+++ b/tools/glusterfind/src/nodeagent.py
@@ -52,7 +52,7 @@ def mode_create(args):
session_dir = os.path.join(conf.get_opt("session_dir"),
args.session)
status_file = os.path.join(session_dir, args.volume,
- "%s.status" % urllib.parse.quote_plus(args.brick))
+ "%s.status" % urllib.quote_plus(args.brick))
mkdirp(os.path.join(session_dir, args.volume), exit_on_err=True,
logger=logger)
@@ -67,7 +67,7 @@ def mode_create(args):
def mode_post(args):
session_dir = os.path.join(conf.get_opt("session_dir"), args.session)
status_file = os.path.join(session_dir, args.volume,
- "%s.status" % urllib.parse.quote_plus(args.brick))
+ "%s.status" % urllib.quote_plus(args.brick))
mkdirp(os.path.join(session_dir, args.volume), exit_on_err=True,
logger=logger)