Andrew Jorgensen has proposed merging lp:~ajorgens/cloud-init/python26 into 
lp:cloud-init.

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

For more details, see:
https://code.launchpad.net/~ajorgens/cloud-init/python26/+merge/296575

A fairly simple fix for Python 2.6 compatibility (for RHEL6 / CentOS6).
-- 
Your team cloud init development team is requested to review the proposed merge 
of lp:~ajorgens/cloud-init/python26 into lp:cloud-init.
=== modified file 'cloudinit/distros/__init__.py'
--- cloudinit/distros/__init__.py	2016-05-31 21:17:39 +0000
+++ cloudinit/distros/__init__.py	2016-06-06 16:07:34 +0000
@@ -110,7 +110,7 @@
         raise NotImplementedError()
 
     def get_primary_arch(self):
-        arch = os.uname[4]
+        arch = os.uname()[4]
         if arch in ("i386", "i486", "i586", "i686"):
             return "i386"
         return arch

_______________________________________________
Mailing list: https://launchpad.net/~cloud-init-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~cloud-init-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to