Merge "Generating fencing for capitalized MACs"
This commit is contained in:
commit
1b589e3529
@ -394,7 +394,7 @@ class GenerateFencingParametersAction(base.TripleOAction):
|
|||||||
if "ports" in node:
|
if "ports" in node:
|
||||||
# Not all Ironic drivers present a MAC address, so we only
|
# Not all Ironic drivers present a MAC address, so we only
|
||||||
# capture it if it's present
|
# 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
|
node_data["host_mac"] = mac_addr
|
||||||
|
|
||||||
# If the MAC isn't in the hostmap, this node hasn't been
|
# If the MAC isn't in the hostmap, this node hasn't been
|
||||||
|
Loading…
Reference in New Issue
Block a user