mirror of https://github.com/ansible/ansible.git
Test host in inventory by name in remove_host (#45639)
The host argument is a Host object, and is used as such by group.remove_host. However, self.hosts is a dictionary of host name to Host object. Thus, the existing code is checking to see if the Host object is one of the keys. Use host.name to interact with the keys of the dictionary.pull/48167/head
parent
d4bb67cac0
commit
c5b303fa52
Loading…
Reference in New Issue