filter not work with deleted status
Bug #1790114 reported by
jichenjc
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
During review https:/
seems this
174 if search_
175 if context.is_admin:
176 search_
177 else:
178 msg = _("Only administrators may list deleted instances")
179 raise exc.HTTPForbidd
has some issue so that the check won't work at all
Changed in nova: | |
status: | In Progress → New |
assignee: | jichenjc (jichenjc) → nobody |
To post a comment you must log in.
Type "help", "copyright", "credits" or "license" for more information. opts.get( "vm_state" ) == ['deleted'] opts.get( "vm_state" ) == ['deleted']
>>> search_
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'search_opts' is not defined
>>> search_opts = {'vm_state': 'deleted'}
>>> search_
False
>>>