Files
community.general/library
Kavin Kankeshwar 3042366199 Fixing logical error in detecting virtual device.
So In my Centos 5.9 machine, if there is RAID mount ansible will crash, as it cannot find scheduler file. The reason being, this should be a virtual device as there is no "device" folder under e.g. /sys/block/md0/

Here is the crash:

[kk@u1 ansible]$ ansible q3 -m setup -k -u root --tree=/tmp/facts
SSH password:
q3 | FAILED => failed to parse: /sys/block/md0
Traceback (most recent call last):
  File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 1797, in ?
    main()
  File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 1050, in main
    data = run_setup(module)
  File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 1000, in run_setup
    facts = ansible_facts()
  File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 990, in ansible_facts
    facts.update(Hardware().populate())
  File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 312, in populate
    self.get_device_facts()
  File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 439, in get_device_facts
    m = re.match(".*?(\[(.*)\])", scheduler)
  File "/usr/lib64/python2.4/sre.py", line 129, in match
    return _compile(pattern, flags).match(string)
TypeError: expected string or buffer
2013-02-11 18:23:58 -08:00
..
2013-01-13 11:24:21 -08:00
2013-02-09 14:29:31 -05:00
2012-11-21 18:49:30 +01:00
2013-01-13 11:24:21 -08:00
2012-11-21 18:49:30 +01:00
2012-11-21 18:49:30 +01:00
2013-01-29 18:57:02 +01:00
2013-01-25 20:49:30 -05:00
2012-10-29 13:10:23 +01:00
2013-02-04 17:19:59 -06:00
2013-01-28 17:46:35 +01:00
2013-02-09 14:34:03 -05:00
2013-01-10 19:24:23 +01:00
2013-01-13 11:24:21 -08:00
2013-01-25 14:25:12 +01:00
2012-10-23 15:14:01 +02:00
2013-02-10 17:08:33 -05:00
2012-11-21 18:49:30 +01:00
2012-11-21 18:49:30 +01:00
2012-11-21 18:49:30 +01:00
2013-01-13 11:24:21 -08:00
2013-02-03 14:01:55 +01:00
2013-01-04 16:36:02 +10:00
2012-11-27 11:18:46 -05:00