error_code of BotoServerError is wrong

Bug #816823 reported by xelatex
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-adminclient
New
Undecided
Unassigned

Bug Description

Line 361 of client.py judges the error_code of exception BotoServerError, which is as follows:

 360 except boto.exception.BotoServerError, e:
 361 if e.status == 400 and e.error_code == 'UserNotFound':
 362 return None
 363 raise

While the error_code is not used in boto-1.9b, and the corresponding error_code is 'NotFound', so line of 361 should be:

 361 if e.status == 400 and e.error_code == 'NotFound':

Please check it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.