From 6fde82219e88a75a12a611a34191d6a75a59a4db Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Mon, 20 Oct 2008 13:44:45 +0000
Subject: [PATCH] Use constants.VALUE_AUTO for ip comparison too

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

Reviewed-by: imsnah
---
 lib/cmdlib.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index 5d5914500..3d2ccc8ce 100644
--- a/lib/cmdlib.py
+++ b/lib/cmdlib.py
@@ -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
     else:
       if not utils.IsValidIP(ip):
-- 
GitLab