We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5291d61 commit b6eec98Copy full SHA for b6eec98
psconfig/perfsonar-psconfig/psconfig/utilities/dns.py
@@ -14,6 +14,8 @@ def read_etc_hosts():
14
with open('/etc/hosts', 'r') as file:
15
for line in file:
16
entry = line.split()
17
+ if not entry or len(entry) < 2:
18
+ continue
19
ip_hosts[entry[0]] = entry[1:]
20
for host in entry[1:]:
21
host_ips[host] = host_ips.get(host, []) + [entry[0]]
0 commit comments