]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/tasks: add error condition to exec functions
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 27 Feb 2024 14:48:25 +0000 (09:48 -0500)
committerAdam King <adking@redhat.com>
Mon, 15 Apr 2024 15:01:30 +0000 (11:01 -0400)
commit5f2501fa1a568bfdbd1162eaf55269b68b688926
tree85155fccbf37fe859b100fdf5796a2318daa577e
parentbd922cf657e1c68a01083e91ebf0a13b6dc16d2a
qa/tasks: add error condition to exec functions

Looking at the code that expands `all-roles` and `all-hosts` there's no
proper error checking for when these values appear but there are >1
top-level roles in the task config. If a user does this it'll fail
but in a somewhat unclear manner. Add a new condition that raises a
clear exception in this case hopefully saving someone future debugging
time.

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