bocajspear1 / fakernet

A framework for quickly creating internet-like services for labs, exercises, and research.
https://fakernet.j2h2.io/
Mozilla Public License 2.0
4 stars 0 forks source link

fnsconsole crashes when running `list_servers` with LXD containers active #4

Open bocajspear1 opened 4 years ago

bocajspear1 commented 4 years ago
local> list_servers                                                                                                                                                                           
Traceback (most recent call last):
  File "fnconsole.py", line 466, in <module>
    main()
  File "fnconsole.py", line 462, in main
    console.start()
  File "fnconsole.py", line 288, in start
    self.main_level(command_split)
  File "fnconsole.py", line 308, in main_level
    print_table(server_list, ["Module", "ID", "IP", "Description", "status"])
  File "fnconsole.py", line 46, in print_table
    tp.table(data, headers, width=widths)
  File "/home/jacob/fakernet/venv/lib/python3.6/site-packages/tableprint/printer.py", line 129, in table
    tablestr += [row(d, widths, format_spec, align, style) for d in data]
  File "/home/jacob/fakernet/venv/lib/python3.6/site-packages/tableprint/printer.py", line 129, in <listcomp>
    tablestr += [row(d, widths, format_spec, align, style) for d in data]
  File "/home/jacob/fakernet/venv/lib/python3.6/site-packages/tableprint/printer.py", line 209, in row
    widths = parse_width(width, len(values))
  File "/home/jacob/fakernet/venv/lib/python3.6/site-packages/tableprint/utils.py", line 96, in parse_width
    assert len(width) == n, "Widths and data do not match."
AssertionError: Widths and data do not match.