Stripe resolv (#1226)

This commit is contained in:
Pascal Vizeli 2019-08-16 13:22:07 +02:00 committed by GitHub
parent 4072b06faf
commit 8e4db0c3ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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