Remove hypen from hostname when we compare node number.
This commit is contained in:
parent
f3e93b7e1a
commit
160877f19a
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue