From 160877f19a72d2a81475d1eb271d27f81f0d77a4 Mon Sep 17 00:00:00 2001 From: Magnus Andersson Date: Mon, 4 Mar 2024 13:37:29 +0100 Subject: [PATCH] Remove hypen from hostname when we compare node number. --- scripts/openstack-server | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/openstack-server b/scripts/openstack-server index 9bcc7bc..54a387a 100755 --- a/scripts/openstack-server +++ b/scripts/openstack-server @@ -264,7 +264,7 @@ def parse_drive_fqdn(fqdn: str) -> tuple: else: customer = 'common' hostname = fqdn.split('.')[0] - number = re.sub(r'[a-z.]', '', hostname) + number = re.sub(r'[-a-z.]', '', hostname) location = 'sto4' if number == '3': location = 'sto3'