Fix host bit width detection.
authorCarl Hetherington <cth@carlh.net>
Wed, 30 Sep 2015 13:47:01 +0000 (14:47 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 30 Sep 2015 13:47:01 +0000 (14:47 +0100)
cdist

diff --git a/cdist b/cdist
index a4cbd8ee03b65ccd763496a5b5244ba9d09f94e8..cb02a2797967a470669163706fbbf3739a64e8bc 100755 (executable)
--- a/cdist
+++ b/cdist
@@ -546,7 +546,7 @@ def target_factory(s, debug, work):
         try:
             f = open('/etc/fedora-release', 'r')
             l = f.readline().strip().split()
-            if command_and_read('uname -m') == 'x86_64':
+            if command_and_read('uname -m').read().strip() == 'x86_64':
                 bits = 64
             else:
                 bits = 32