netplan ip leases wlan0 -> traceback

Bug #1887995 reported by James Troup
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
netplan.io (Ubuntu)
New
Undecided
Unassigned

Bug Description

$ netplan ip leases wlan0
Traceback (most recent call last):
  File "/usr/sbin/netplan", line 23, in <module>
    netplan.main()
  File "/usr/share/netplan/netplan/cli/core.py", line 50, in main
    self.run_command()
  File "/usr/share/netplan/netplan/cli/utils.py", line 186, in run_command
    self.func()
  File "/usr/share/netplan/netplan/cli/commands/ip.py", line 57, in run
    self.run_command()
  File "/usr/share/netplan/netplan/cli/utils.py", line 186, in run_command
    self.func()
  File "/usr/share/netplan/netplan/cli/commands/ip.py", line 76, in run
    self.run_command()
  File "/usr/share/netplan/netplan/cli/utils.py", line 186, in run_command
    self.func()
  File "/usr/share/netplan/netplan/cli/commands/ip.py", line 150, in command_ip_leases
    key, value = keyvalue.strip().split('=')
ValueError: not enough values to unpack (expected 2, got 1)
$

This is netplan.io 0.99-0ubuntu3~20.04.2 on Ubuntu 20.04.

Netplan is not managing wlan0, so I don't expect the command to work, but I don't expect a Python traceback.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.