From 0329c2550714b5d297aef8f38c37058eca5c1df0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20Jens=C3=A5s?= Date: Fri, 16 Mar 2018 01:42:18 +0100 Subject: [PATCH] Fix the error message in _validate_no_ip_change The validation is for existing ip == configured ip address but the error message prints the value of CONF.network_cidr. This patch changes the message to print the local_ip used in the config. Closes-Bug: #1756225 Change-Id: I045d72e48d63ab5b25858b5886578e18637c8d43 --- tripleoclient/v1/undercloud_preflight.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tripleoclient/v1/undercloud_preflight.py b/tripleoclient/v1/undercloud_preflight.py index 7ac343363..94a34191a 100644 --- a/tripleoclient/v1/undercloud_preflight.py +++ b/tripleoclient/v1/undercloud_preflight.py @@ -334,7 +334,7 @@ def _validate_no_ip_change(): if existing_ip != CONF.local_ip: message = ('Changing the local_ip is not allowed. Existing IP: ' '%s, Configured IP: %s') % (existing_ip, - CONF.network_cidr) + CONF.local_ip) LOG.error(message) raise FailedValidation(message)