The name 'action' is referenced before it is defined in xenapi_conn.py
Bug #820963 reported by
Ed Leafe
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Ed Leafe |
Bug Description
The code in the wait_for_task() method of xenapi_conn.py tries to set the 'error' key in the 'action' dict if an error is encountered. But that name is only defined if an 'id' was passed in to the method initially; in cases where no id was passed, the following traceback is returned:
Traceback (most recent call last):
File "/home/
self.
File "/home/
action["error"] = str(error_info)
UnboundLocalError: local variable 'action' referenced before assignment
Related branches
lp:~ed-leafe/nova/lp820963
- Rick Harris (community): Approve
- Dan Prince (community): Approve
- Jason Kölker (community): Approve
- Josh Kearney (community): Approve
-
Diff: 18 lines (+3/-4)1 file modifiednova/virt/xenapi_conn.py (+3/-4)
Changed in nova: | |
status: | New → Fix Committed |
Changed in nova: | |
milestone: | diablo-4 → 2011.3 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.