← Back to team overview

cloud-init-dev team mailing list archive

[Merge] lp:~harlowja/cloud-init/cloud-init-fix-26 into lp:cloud-init


Joshua Harlow has proposed merging lp:~harlowja/cloud-init/cloud-init-fix-26 into lp:cloud-init.

Requested reviews:
  cloud init development team (cloud-init-dev)

For more details, see:

Fixes a stray dict comprehension that snuck in/was left over.
Your team cloud init development team is requested to review the proposed merge of lp:~harlowja/cloud-init/cloud-init-fix-26 into lp:cloud-init.
=== modified file 'cloudinit/net/__init__.py'
--- cloudinit/net/__init__.py	2016-06-20 18:54:12 +0000
+++ cloudinit/net/__init__.py	2016-07-13 00:19:07 +0000
@@ -252,7 +252,8 @@
         cur_bymac[mac] = cur
     def update_byname(bymac):
-        return {data['name']: data for data in bymac.values()}
+        return dict((data['name'], data)
+                    for data in bymac.values())
     def rename(cur, new):
         util.subp(["ip", "link", "set", cur, "name", new], capture=True)