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
This commit is contained in:
Harald Jensås 2018-03-16 01:42:18 +01:00
parent f3948b5532
commit 0329c25507
1 changed files with 1 additions and 1 deletions

View File

@ -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)