Hm, maybe I'm holding it wrong (again) but I'm not sure this is fully fixed:
$ apt list netplan.io
netplan.io/now 0.103-0ubuntu5~21.04.2 amd64 [installed,local]
$ $ zcat /usr/share/doc/netplan.io/changelog.Debian.gz |head -n 6
netplan.io (0.103-0ubuntu5~21.04.2) hirsute; urgency=medium

  * Backport patches from impish:
    + Add d/p/0006-netplan-set-make-it-possible-to-unset-a-whole-devtyp.patch:
      Fix unset of a devtype subtree, e.g. "netplan set network.ethernets=null"
      (LP: #1942930)
$ netplan get
network:
  renderer: NetworkManager
  version: 2
 netplan set network=null
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 310, in run_command
    self.func()
  File "/usr/share/netplan/netplan/cli/commands/set.py", line 53, in run
    self.run_command()
  File "/usr/share/netplan/netplan/cli/utils.py", line 310, in run_command
    self.func()
  File "/usr/share/netplan/netplan/cli/commands/set.py", line 103, in 
command_set
    hints = self.split_tree_by_hint(set_tree)
  File "/usr/share/netplan/netplan/cli/commands/set.py", line 59, in 
split_tree_by_hint
    for devtype in network:
TypeError: 'NoneType' object is not iterable

But maybe that is a different bug that needs to be reported differently.
Anyway, I can probably work around this one.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1942930

Title:
  Unset a subtree crashes

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/1942930/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to