Fix some collecton validation
And add restrict_level helper method.
This commit is contained in:
parent
e70a125ab9
commit
1430b40bc5
7 changed files with 11 additions and 13 deletions
|
|
@ -64,8 +64,7 @@ class NovaBackend(BaseBackend, ICapRadio, ICapCollection):
|
|||
|
||||
def iter_resources(self, objs, split_path):
|
||||
if Radio in objs:
|
||||
if len(split_path) > 0:
|
||||
raise CollectionNotFound(split_path)
|
||||
self._restrict_level(split_path)
|
||||
|
||||
for id in self._RADIOS.iterkeys():
|
||||
yield self.get_radio(id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue