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.
pull/57737/head
Gonéri Le Bouder 6 years ago committed by Abhijeet Kasurde
parent 166a5c909c
commit 6537d1bc0f

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

Loading…
Cancel
Save