diff options
author | Andrew Jorgensen <ajorgens@amazon.com> | 2016-08-18 14:28:25 -0400 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2016-08-18 14:28:25 -0400 |
commit | 41271bd8609550d02868b7681b49b8791678beaa (patch) | |
tree | d6ec299b9694f29a6bb62c22c132cd3eee0e8cc6 | |
parent | d861415ff9ab816b1183b8c58ec35348be4fd458 (diff) | |
download | vyos-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.
-rw-r--r-- | cloudinit/distros/__init__.py | 2 |
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 |