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