]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix exception during service update
authorLisaLi <xiaoyan.li@intel.com>
Mon, 29 Feb 2016 07:12:18 +0000 (15:12 +0800)
committerLisaLi <xiaoyan.li@intel.com>
Wed, 2 Mar 2016 05:25:42 +0000 (13:25 +0800)
commit802c5633e064ad7d79ae7e5aa0ffb2e1df60f96b
tree0a74fd236bd189d452442135033a4cbc481db478
parent687ea8dd30683895d49ebe8c95321bb7f2e09fd1
Fix exception during service update

The function objects.Service.get_by_args raises HostBinaryNotFound
exception, but in service update function, it catches ServiceNotFound
exception by mistake.

This patch is to remove HostBinaryNotFound and use ServiceNotFound to make
things simple and consistent.

Change-Id: Ic2ef79ca03393f3b1eb5bb89d4ffcf92d76460c6
Closes-bug: #1551101
cinder/cmd/manage.py
cinder/db/sqlalchemy/api.py
cinder/exception.py
cinder/tests/unit/test_db_api.py