From 3fae5133be9e862e8841a95ee64cb5974cb2af2d Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Wed, 9 Oct 2024 16:44:41 -0400 Subject: [PATCH] fix: `http_ip` warn vs err Updates `ValidateHTTPAddress` to simply log a warning if the `http_ip` is not bound to an interface instead of error. Ref: #474 Signed-off-by: Ryan Johnson --- builder/vsphere/common/http_address.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builder/vsphere/common/http_address.go b/builder/vsphere/common/http_address.go index 88abf4dd..d98d696d 100644 --- a/builder/vsphere/common/http_address.go +++ b/builder/vsphere/common/http_address.go @@ -5,6 +5,7 @@ package common import ( "fmt" + "log" "net" ) @@ -24,7 +25,7 @@ func ValidateHTTPAddress(httpAddress string) error { return fmt.Errorf("invalid IP address format: %s", httpAddress) } if !IsIPInInterfaces(httpAddress) { - return fmt.Errorf("%s is not assigned to an interface", httpAddress) + log.Printf("[WARN] %s is not assigned to an interface", httpAddress) } return nil }