Generating fencing for capitalized MACs

Because the ports are stored in lower case, we need to use lower case
MACs as our search key.

Change-Id: I7e3727987265ef5222c95678c69cc4a50176dd16
Closes-Bug: #1800504
This commit is contained in:
David Vallee Delisle 2018-10-29 12:53:57 -04:00 committed by Michele Baldessari
parent d6404dd372
commit 84603a06af
1 changed files with 1 additions and 1 deletions

View File

@ -394,7 +394,7 @@ class GenerateFencingParametersAction(base.TripleOAction):
if "ports" in node:
# Not all Ironic drivers present a MAC address, so we only
# capture it if it's present
mac_addr = node['ports'][0]['address']
mac_addr = node['ports'][0]['address'].lower()
node_data["host_mac"] = mac_addr
# If the MAC isn't in the hostmap, this node hasn't been