Skip to content

Commit

Permalink
Fix typo in matching which breaks rename. (LP: #1770082)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Trudel-Lapierre committed Oct 22, 2018
1 parent 65eff31 commit 54f1aec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
netplan.io (0.40.1~18.04.2) UNRELEASED; urgency=medium

* Fix typo breaking rename on 'netplan apply'. (LP: #1770082)

-- Mathieu Trudel-Lapierre <[email protected]> Mon, 22 Oct 2018 14:57:35 -0400

netplan.io (0.40.1~18.04.1) bionic; urgency=medium

* Backport netplan 0.40.1 to 18.04. (LP: #1793309)
Expand Down
4 changes: 2 additions & 2 deletions netplan/cli/commands/apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ def process_link_changes(interfaces, config_manager): # pragma: nocover (covere
driver = match.get('driver')
mac = match.get('macaddress')
if driver:
matches['by-driver'][driver] = phy
matches['by-driver'][driver] = newname
if mac:
matches['by-mac'][mac] = phy
matches['by-mac'][mac] = newname

# /sys/class/net/ens3/device -> ../../../virtio0
# /sys/class/net/ens3/device/driver -> ../../../../bus/virtio/drivers/virtio_net
Expand Down

0 comments on commit 54f1aec

Please sign in to comment.