]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 29 Feb 2024 15:00:29 +0000 (10:00 -0500)
commit52a924e7fd4b84801b8606436f287ff15c46f40a
tree10791f6be3cfd09513403d8dc7c6940f2ffe3ec5
parenta04996aa4df8fdab4e891f4de9870352456118dd
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>
qa/tasks/vip.py