Commit 620aeeb5 by Brian Coca

fixed but in pulling data from dmesg command, wrong function to use as file for for loop

Signed-off-by: Brian Coca <briancoca+ansible@gmail.com>
parent fea5d364
...@@ -444,7 +444,7 @@ class FreeBSDHardware(Hardware): ...@@ -444,7 +444,7 @@ class FreeBSDHardware(Hardware):
except IOError: except IOError:
dmesg_cmd = subprocess.Popen("/sbin/dmesg", shell=True, dmesg_cmd = subprocess.Popen("/sbin/dmesg", shell=True,
stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout=subprocess.PIPE, stderr=subprocess.PIPE)
dmesg_boot,dmesg_err = dmesg_cmd.communicate() dmesg_boot = dmesg_cmd.stdout
for line in dmesg_boot.readlines(): for line in dmesg_boot.readlines():
if 'CPU:' in line: if 'CPU:' in line:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment