Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Dec 6, 2024
1 parent 2803745 commit 1097f32
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mirrormanager2/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,8 @@ def validate_netblocks(form, field):
emsg += " can only be created by mirrormanager administrators."
emsg += " Please ask the mirrormanager administrators for assistance."

ipv4_block = ipaddress.IPv4Network(f"10.0.0.0{max_ipv4_netblock_size}",
strict=False)
ipv6_block = ipaddress.IPv6Network(f"fec0::{max_ipv6_netblock_size}",
strict=False)
ipv4_block = ipaddress.IPv4Network(f"10.0.0.0{max_ipv4_netblock_size}", strict=False)
ipv6_block = ipaddress.IPv6Network(f"fec0::{max_ipv6_netblock_size}", strict=False)

try:
ip = ipaddress.ip_network(field.data, strict=False)
Expand Down

0 comments on commit 1097f32

Please sign in to comment.