summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorAndrew Jorgensen <ajorgens@amazon.com>2016-08-18 14:28:25 -0400
committerScott Moser <smoser@brickies.net>2016-08-18 14:28:25 -0400
commit41271bd8609550d02868b7681b49b8791678beaa (patch)
treed6ec299b9694f29a6bb62c22c132cd3eee0e8cc6 /cloudinit
parentd861415ff9ab816b1183b8c58ec35348be4fd458 (diff)
downloadvyos-cloud-init-41271bd8609550d02868b7681b49b8791678beaa.tar.gz
vyos-cloud-init-41271bd8609550d02868b7681b49b8791678beaa.zip
distros: fix get_primary_arch method use of os.uname
os.uname is a method, not a property.
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/distros/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/distros/__init__.py b/cloudinit/distros/__init__.py
index 40af8802..b1192e84 100644
--- a/cloudinit/distros/__init__.py
+++ b/cloudinit/distros/__init__.py
@@ -112,7 +112,7 @@ class Distro(object):
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