From 0889cbf72726049f54859178a0869a59f2e7cfba Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Fri, 2 Aug 2024 19:32:33 +0200 Subject: [PATCH] provision/downburst: ignore "username@" prefix in hostname If downburst gets hostname as an argument which does not have a username@ prefix (does not include @-symbol) there is an index out of range error will occur, which we, obviously, don't want and wish to allow hostnames don't use login names. Signed-off-by: Kyr Shatskyy --- teuthology/provision/downburst.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/provision/downburst.py b/teuthology/provision/downburst.py index c605ab97a..97a511ef9 100644 --- a/teuthology/provision/downburst.py +++ b/teuthology/provision/downburst.py @@ -216,7 +216,7 @@ def build_config(self): 'additional-disks-size': machine['volumes']['size'], 'arch': 'x86_64', } - fqdn = self.name.split('@')[1] + fqdn = self.name.split('@')[-1] file_out = { 'downburst': file_info, 'local-hostname': fqdn,