VmWare: Remove unused legacy_nodename regex

The regex isn't used anywhere, and uses an unescaped format
The last use was removed in 2f7403b
(Change-Id: Ifc17c5049e3ed29c8dd130339207907b00433960).

Change-Id: I76aaf133af517eb70fcaf3783953625c63141083
This commit is contained in:
Fabian Wiesel 2021-08-26 14:08:45 +02:00
parent e8feef747f
commit 5fa6421945
1 changed files with 0 additions and 7 deletions

View File

@ -87,13 +87,6 @@ class VMwareVCDriver(driver.ComputeDriver):
"supports_image_type_ploop": False,
}
# Legacy nodename is of the form: <mo id>(<cluster name>)
# e.g. domain-26(TestCluster)
# We assume <mo id> consists of alphanumeric, _ and -.
# We assume cluster name is everything between the first ( and the last ).
# We pull out <mo id> for re-use.
LEGACY_NODENAME = re.compile(r'([\w-]+)\(.+\)')
# The vCenter driver includes API that acts on ESX hosts or groups
# of ESX hosts in clusters or non-cluster logical-groupings.
#