Change NotFound to InstanceNotFound in server_diagnostics.py
According to the get() method in nova/compute/api.py,
the index() method in nova/api/openstack/compute/
contrib/server_diagnostics.py should catch the
InstanceNotFound, rather than the NotFound.
This patch just applies to V2 API, V3 API is already
catching InstanceNotFound.
Reviewed: https:/ /review. openstack. org/82964 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=f0817d3ac11 f98c3d518303a50 711a6a9c677851
Committed: https:/
Submitter: Jenkins
Branch: master
commit f0817d3ac11f98c 3d518303a50711a 6a9c677851
Author: Zhengguang <email address hidden>
Date: Wed Mar 26 09:25:12 2014 +0800
Change NotFound to InstanceNotFound in server_ diagnostics. py
According to the get() method in nova/compute/ api.py, openstack/ compute/ server_ diagnostics. py should catch the Found, rather than the NotFound.
the index() method in nova/api/
contrib/
InstanceNot
This patch just applies to V2 API, V3 API is already
catching InstanceNotFound.
Change-Id: I9e021837b9050d ade9af4725a0712 f260eac6f7a
Closes-bug: #1296662