forked from 3wordchant/capsul-flask
fix last IP address hanging off the end of the display on admin page
This commit is contained in:
parent
6bdb133153
commit
fbe9c7fca4
@ -19,7 +19,7 @@ bp = Blueprint("admin", __name__, url_prefix="/admin")
|
|||||||
def index():
|
def index():
|
||||||
hosts = get_model().list_hosts_with_networks(None)
|
hosts = get_model().list_hosts_with_networks(None)
|
||||||
vms_by_host_and_network = get_model().non_deleted_vms_by_host_and_network(None)
|
vms_by_host_and_network = get_model().non_deleted_vms_by_host_and_network(None)
|
||||||
network_display_width_px = float(380)
|
network_display_width_px = float(270)
|
||||||
#operations = get_model().list_all_operations()
|
#operations = get_model().list_all_operations()
|
||||||
|
|
||||||
display_hosts = []
|
display_hosts = []
|
||||||
@ -47,7 +47,7 @@ def index():
|
|||||||
network_end_int = int(ipv4_address)
|
network_end_int = int(ipv4_address)
|
||||||
|
|
||||||
network['allocations'] = []
|
network['allocations'] = []
|
||||||
network_addresses_width = float((network_end_int-network_start_int))
|
network_addresses_width = float((network_end_int-network_start_int)+1)
|
||||||
|
|
||||||
if host_id in vms_by_host_and_network:
|
if host_id in vms_by_host_and_network:
|
||||||
if network['network_name'] in vms_by_host_and_network[host_id]:
|
if network['network_name'] in vms_by_host_and_network[host_id]:
|
||||||
|
Loading…
Reference in New Issue
Block a user