Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
olethanh committed Oct 22, 2024
1 parent 32b66a5 commit 04fe113
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/aleph/vm/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,12 +437,13 @@ def setup(self):
self.DNS_NAMESERVERS_IPV4 = []
if not self.DNS_NAMESERVERS_IPV6:
self.DNS_NAMESERVERS_IPV6 = []
for server in self.DNS_NAMESERVERS:
ip_addr = ipaddress.ip_address(server)
if isinstance(ip_addr, ipaddress.IPv4Address):
self.DNS_NAMESERVERS_IPV4.append(server)
if isinstance(ip_addr, ipaddress.IPv4Address):
self.DNS_NAMESERVERS_IPV6.append(server)
if self.DNS_NAMESERVERS:
for server in self.DNS_NAMESERVERS:
ip_addr = ipaddress.ip_address(server)
if isinstance(ip_addr, ipaddress.IPv4Address):
self.DNS_NAMESERVERS_IPV4.append(server)
if isinstance(ip_addr, ipaddress.IPv4Address):
self.DNS_NAMESERVERS_IPV6.append(server)

if not settings.ENABLE_QEMU_SUPPORT:
# If QEmu is not supported, ignore the setting and use Firecracker by default
Expand Down

0 comments on commit 04fe113

Please sign in to comment.