summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorDevananda van der Veen <devananda.vdv@gmail.com>2013-01-17 13:30:58 -0800
committerDevananda van der Veen <devananda.vdv@gmail.com>2013-01-21 19:28:44 -0800
commitac8a9d80d035f19c251935491d4bf5672f5e3b6b (patch)
tree2ea5eb6196083df21dbae5be76408e5ba2240a97 /nova/exception.py
parenta4d608fa33b328d7ed77c7f9c40ffbb43c0ade6b (diff)
downloadnova-ac8a9d80d035f19c251935491d4bf5672f5e3b6b.tar.gz
nova-ac8a9d80d035f19c251935491d4bf5672f5e3b6b.tar.xz
nova-ac8a9d80d035f19c251935491d4bf5672f5e3b6b.zip
Baremetal/utils should not log certain exceptions
unlink_without_raise was logging exceptions when it failed to unlink a file, which is confusing since it is often called on non-existing files. create_link_without_raise was also logging exceptions when it failed to create a symlink. This patch corrects this behaviour; both functions now explicitly check for the type of error they expect, and then suppress that. If another type of OSError is encountered, a warning is logged. This patch also adds unit tests for both functions. fixes bug 1097931. Change-Id: Ie36f59dce34a6c67765770c5f968c003003acc88
Diffstat (limited to 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions