]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks: change map_vips to raise exceptions instead of returning None
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 20 Feb 2024 00:14:52 +0000 (19:14 -0500)
committerAdam King <adking@redhat.com>
Mon, 15 Apr 2024 14:57:53 +0000 (10:57 -0400)
commit311de813b3e61ee6689db08d52c0dbf246c59100
treee8e3797a204c0c429752f3209b3de0a8001b5bb3
parentef82eb5bf0eb43cef093598df8c27640e145148f
qa/tasks: change map_vips to raise exceptions instead of returning None

None of the callers of map_vips ever checks for a None return. So
instead of handling any error conditions it would always just blow
up with a semi-obscure TypeError. Convert the function to always
raise an exception (one that tries to breifly explain the condition)
when something goes wrong. I also take the opportunity to make
more clearer logging and reduce an indentation level.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 52a924e7fd4b84801b8606436f287ff15c46f40a)
qa/tasks/vip.py