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:
parent
f3948b5532
commit
0329c25507
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue