mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-15 13:16:29 +00:00
Stripe resolv (#1226)
This commit is contained in:
parent
4072b06faf
commit
8e4db0c3ec
@ -319,7 +319,9 @@ class CoreDNS(JsonConfig, CoreSysAttributes):
|
||||
try:
|
||||
with RESOLV_CONF.open("r") as resolv:
|
||||
for line in resolv.readlines():
|
||||
resolv_lines.append(line)
|
||||
if not line:
|
||||
continue
|
||||
resolv_lines.append(line.strip())
|
||||
except OSError as err:
|
||||
_LOGGER.error("Can't read local resolv: %s", err)
|
||||
raise CoreDNSError() from None
|
||||
|
Loading…
x
Reference in New Issue
Block a user