From 4fb753997f8a10b18771e38559d04d9b51cf73d9 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 --- system/host | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/host b/system/host index 7b1d2069005..0ca1de56222 100644 --- a/system/host +++ b/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