Merge pull request #1349 from bcoca/fix_bsd_dmesg_jails
fixed but in pulling data from dmesg command, wrong function to use as f...
This commit is contained in:
commit
5cbc8477e1
1 changed files with 1 additions and 1 deletions
2
setup
2
setup
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue