]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Use uname -m instead of uname -p
authorZack Cerza <zack.cerza@inktank.com>
Wed, 1 Oct 2014 22:55:55 +0000 (16:55 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Wed, 1 Oct 2014 22:55:55 +0000 (16:55 -0600)
Debian hosts were reporting as 'unknown'

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/orchestra/remote.py
teuthology/orchestra/test/test_remote.py

index f7bd6ec5278cbba13fe6048772be16c1709030d6..eccfeef1f9a345c4bca22d4ff8c6e1da7d09cf8e 100644 (file)
@@ -264,7 +264,7 @@ class Remote(object):
     @property
     def arch(self):
         if not hasattr(self, '_arch'):
-            proc = self.run(args=['uname', '-p'], stdout=StringIO())
+            proc = self.run(args=['uname', '-m'], stdout=StringIO())
             proc.wait()
             self._arch = proc.stdout.getvalue().strip()
         return self._arch
index c73bb6be7ddea62bcf7fe0a959337d3cc718e8e7..12e51e3116b609b9dfcecfe687f9c5c89b3a1610 100644 (file)
@@ -102,7 +102,7 @@ class TestRemote(object):
         run = fudge.Fake('run')
         args = [
             'uname',
-            '-p',
+            '-m',
             ]
         stdout = StringIO('test_arch')
         stdout.seek(0)