Skip to content

Commit

Permalink
minor formatting cleanup after #275
Browse files Browse the repository at this point in the history
  • Loading branch information
zeromind committed Jun 25, 2024
1 parent 368c9d3 commit 3ea27dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dim/dim/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def find_parent():
.filter_by(status=get_status('Container')).all()
if parents and all([p.layer3domain == parents[0].layer3domain for p in parents]):
return parents[0].layer3domain

layer3domain = _get_layer3domain_arg(layer3domain, options,
guess_function=find_parent if status == 'Container' and parse_ip(block_str).prefix !=0 else None)
ip = check_ip(parse_ip(block_str), layer3domain, options)
Expand Down Expand Up @@ -852,6 +852,7 @@ def explore(block):
[explore(c) for c in children] +
[{'ip': f, 'status': 'Available'} for f in block.free_space])
return item

layer3domain = _get_layer3domain_arg(layer3domain)
if container is not None:
block = _find_ipblock(container, layer3domain, status=['Container'])
Expand Down

0 comments on commit 3ea27dd

Please sign in to comment.