If a host was in maintenance mode, we should make sure to check
all of the host information again once it's taken out even if
it hasn't been long enough for the daemon/device/facts etc. cache
to timeout. Some users may make changes to things like the node's
hardware or OS during maintenance mode that we should make sure to
pick up as soon as possible
Signed-off-by: Adam King <adking@redhat.com>
tgt_host['status'] = ""
self.inventory._inventory[hostname] = tgt_host
self.inventory.save()
+ # make sure we refresh state for this host now that it's out
+ # of maintenance mode. Maintenance mode is a time where users
+ # could have theoretically made a lot of changes to the host.
+ self._invalidate_all_host_metadata_and_kick_serve(hostname)
self.set_maintenance_healthcheck()