Resepect capitialization of network interfaces (#3646)

This commit is contained in:
Stefan Agner 2022-05-19 17:47:50 +02:00 committed by GitHub
parent 2c09021427
commit 2fe358fb1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,9 +141,7 @@ class APINetwork(CoreSysAttributes):
def _get_interface(self, name: str) -> Interface:
"""Get Interface by name or default."""
name = name.lower()
if name == "default":
if name.lower() == "default":
for interface in self.sys_host.network.interfaces:
if not interface.primary:
continue