Commit 6fde8221 authored by Guido Trotter's avatar Guido Trotter
Browse files

Use constants.VALUE_AUTO for ip comparison too

Forward-port-of: r1889, Reviewed-by: imsnah

Reviewed-by: imsnah
parent 8cd7cb4c
......@@ -3322,7 +3322,7 @@ class LUCreateInstance(LogicalUnit):
ip = getattr(self.op, "ip", None)
if ip is None or ip.lower() == "none":
inst_ip = None
elif ip.lower() == "auto":
elif ip.lower() == constants.VALUE_AUTO:
inst_ip = hostname1.ip
if not utils.IsValidIP(ip):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment