From cd7bbe8602356e65d598380081672d97bf8f8a5d Mon Sep 17 00:00:00 2001 From: swapnil-nilangekar Date: Fri, 19 May 2017 03:03:14 -0600 Subject: [PATCH] Fixing volume inspect problem , issue #30 --- hpedockerplugin/etcdutil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hpedockerplugin/etcdutil.py b/hpedockerplugin/etcdutil.py index 3cf3b97e..83c5a217 100644 --- a/hpedockerplugin/etcdutil.py +++ b/hpedockerplugin/etcdutil.py @@ -97,8 +97,8 @@ def get_vol_byname(self, volname): volmember = json.loads(child.value) vol = volmember['display_name'] if vol.startswith(volname, 0, len(volname)): - # if volmember['display_name'] == volname: - return volmember + if volmember['display_name'] == volname: + return volmember elif volmember['name'] == volname: return volmember return None