vmware_host_ipv6: only changed when changed (#57702)

Do not return the `changed` status when a reboot is required. The
configuration is applied and so the configuration changed has already been
done.
This commit is contained in:
Gonéri Le Bouder 2019-06-12 04:50:19 -04:00 committed by Abhijeet Kasurde
parent 166a5c909c
commit 6537d1bc0f

View file

@ -136,7 +136,6 @@ class VmwareHostIPv6(PyVmomi):
results['result'][host.name]['msg'] = "IPv6 is already enabled and active for host '%s'" % \ results['result'][host.name]['msg'] = "IPv6 is already enabled and active for host '%s'" % \
host.name host.name
if not host_network_info.ipV6Enabled: if not host_network_info.ipV6Enabled:
changed = True
results['result'][host.name]['msg'] = ("IPv6 is already enabled for host '%s', but a reboot" results['result'][host.name]['msg'] = ("IPv6 is already enabled for host '%s', but a reboot"
" is required!" % host.name) " is required!" % host.name)
# Enable IPv6 # Enable IPv6