Skip to content

Commit

Permalink
Merge pull request hpe-storage#32 from nilangekarss/fix_vol_ls_issue_30
Browse files Browse the repository at this point in the history
Fixing volume inspect problem , issue hpe-storage#30
  • Loading branch information
HPE Storage authored May 19, 2017
2 parents dbb36c2 + cd7bbe8 commit 879ea68
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 879ea68

Please sign in to comment.