From d5c290b513c3650578ec1218d02e8c51f249ca86 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sat, 19 Oct 2013 01:51:42 +0200 Subject: [PATCH] fix logic in module host to add aliases even if none exist already, fix #4563 self._has_aliases is used to know if a alias already exist, but the test we want is to know if we need to add a new alias, which is stored in self.aliases --- library/system/host | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/system/host b/library/system/host index 7b1d206900..0ca1de5622 100644 --- a/library/system/host +++ b/library/system/host @@ -124,7 +124,7 @@ class Host(object): break 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 self._ip_matches and self._hostname_matches