Skip to content

Commit

Permalink
Fixing volume inspect problem , issue hpe-storage#30
Browse files Browse the repository at this point in the history
  • Loading branch information
nilangekarss committed May 19, 2017
1 parent dbb36c2 commit cd7bbe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hpedockerplugin/etcdutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd7bbe8

Please sign in to comment.