From d42c5412da26f2058d3d70b6454cae60861c3b75 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 17b6818b07..41ea5a866d 100644 --- a/teuthology/provision/downburst.py +++ b/teuthology/provision/downburst.py @@ -215,7 +215,7 @@ class Downburst(object): '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, -- 2.39.5