Fix list command when not given search_opts
Can't pop values out of None. Change-Id: I2c62d8bcae4cc4d035fa2bb3aadffb0e1d190751 Closes-Bug: #1707303
This commit is contained in:
parent
502eb756cc
commit
98e0933ca8
@ -325,6 +325,7 @@ class ShareManager(base.ManagerWithFind):
|
|||||||
def list(self, detailed=True, search_opts=None,
|
def list(self, detailed=True, search_opts=None,
|
||||||
sort_key=None, sort_dir=None):
|
sort_key=None, sort_dir=None):
|
||||||
"""Get a list of all shares."""
|
"""Get a list of all shares."""
|
||||||
|
search_opts = search_opts or {}
|
||||||
search_opts.pop("export_location", None)
|
search_opts.pop("export_location", None)
|
||||||
return self.do_list(detailed=detailed, search_opts=search_opts,
|
return self.do_list(detailed=detailed, search_opts=search_opts,
|
||||||
sort_key=sort_key, sort_dir=sort_dir)
|
sort_key=sort_key, sort_dir=sort_dir)
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- The list command for --os-share-api-version <=2.34 has been fixed to not
|
||||||
|
error out in case there are no search options/filters specified.
|
Loading…
x
Reference in New Issue
Block a user