1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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:
Michael DeHaan 2012-10-16 16:15:36 -07:00
commit edb7a054ae

View file

@ -444,7 +444,7 @@ class FreeBSDHardware(Hardware):
except IOError:
dmesg_cmd = subprocess.Popen("/sbin/dmesg", shell=True,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
dmesg_boot,dmesg_err = dmesg_cmd.communicate()
dmesg_boot = dmesg_cmd.stdout
for line in dmesg_boot.readlines():
if 'CPU:' in line: