]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
packaging: Don't hardcode arch
authorZack Cerza <zack@redhat.com>
Fri, 20 May 2016 23:18:22 +0000 (17:18 -0600)
committerZack Cerza <zack@redhat.com>
Fri, 3 Jun 2016 21:02:55 +0000 (15:02 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/packaging.py

index 1325ce5053a56e7348c195cc7dce351823dc0115..4a3bb92b8e99e575e2e2164d3cd4e97c759d428f 100644 (file)
@@ -468,8 +468,7 @@ class GitbuilderProject(object):
         """
         Initializes the class from a teuthology job config
         """
-        # a bad assumption, but correct for most situations I believe
-        self.arch = "x86_64"
+        self.arch = self.job_config.get('arch', 'x86_64')
         self.os_type = self.job_config.get("os_type")
         self.os_version = self._get_version()
         self.distro = self._get_distro(