]> git.apps.os.sepia.ceph.com Git - ceph.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)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 21 Mar 2024 22:31:16 +0000 (18:31 -0400)
commit96704903f273ca0ee597dd819d9aadd1616625ed
treeb34222cee5ef632905c79d120d7b8d7d7b307987
parentbf1607a4a14e92a745cd8d7e743e5f81b7d407b7
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>
qa/tasks/cephadm.py