|
|
@ -75,7 +75,6 @@ class Host(object):
|
|
|
|
self._ip_matches = False
|
|
|
|
self._ip_matches = False
|
|
|
|
self._hostname_matches = False
|
|
|
|
self._hostname_matches = False
|
|
|
|
self._aliases_matches = False
|
|
|
|
self._aliases_matches = False
|
|
|
|
self._has_aliases = False
|
|
|
|
|
|
|
|
self._found_on_line = -1
|
|
|
|
self._found_on_line = -1
|
|
|
|
|
|
|
|
|
|
|
|
def validate_has_hostname_on_present(self):
|
|
|
|
def validate_has_hostname_on_present(self):
|
|
|
@ -117,8 +116,6 @@ class Host(object):
|
|
|
|
|
|
|
|
|
|
|
|
# only look at aliases if we found hostname or ip
|
|
|
|
# only look at aliases if we found hostname or ip
|
|
|
|
if self._hostname_matches or self._ip_matches:
|
|
|
|
if self._hostname_matches or self._ip_matches:
|
|
|
|
if aliases:
|
|
|
|
|
|
|
|
self._has_aliases = True
|
|
|
|
|
|
|
|
if self.aliases and self.aliases == aliases:
|
|
|
|
if self.aliases and self.aliases == aliases:
|
|
|
|
self._aliases_matches = True
|
|
|
|
self._aliases_matches = True
|
|
|
|
break
|
|
|
|
break
|
|
|
|