Skip to content

Commit

Permalink
provision/downburst: ignore "username@" prefix in hostname
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Kyr Shatskyy committed Aug 2, 2024
1 parent 84d6bc3 commit 0889cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teuthology/provision/downburst.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0889cbf

Please sign in to comment.