mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-21 16:39:08 -07:00
Merge pull request #4595 from mscherer/fix_4563
fix logic in module host to add aliases even if none exist already, fix #4563
This commit is contained in:
commit
232eb9f8e6
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ class Host(object):
|
||||||
break
|
break
|
||||||
|
|
||||||
def full_entry_exists(self):
|
def full_entry_exists(self):
|
||||||
if self._has_aliases and not self._aliases_matches:
|
if self.aliases and not self._aliases_matches:
|
||||||
return False
|
return False
|
||||||
return self._ip_matches and self._hostname_matches
|
return self._ip_matches and self._hostname_matches
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue