ansible/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
..
add_host add add_host action plugin - add hosts to inventory during a playbook 2012-11-09 00:16:17 -05:00
apt Merge pull request #1924 from blair/consistly-use-underscores 2013-01-26 10:31:59 -08:00
apt_key This standardizes the apt_key module some 2013-01-28 15:48:55 -05:00
apt_repository Update apt_repository to query if repo is already configured 2013-01-23 22:17:43 -08:00
assemble adjusted assemble to use new file attribute handling 2013-01-28 00:33:18 -05:00
async_status do not conditionalize this for older Python, fix indentation, better use 2012-12-17 21:07:36 +01:00
async_wrapper chmod -x for all module files in source checkout 2012-11-19 13:47:40 -05:00
authorized_key * Minor removal of some dumb I did. 2013-02-02 18:17:18 -06:00
command Various cleanup to run_command 2013-01-13 11:24:21 -08:00
copy This implements a basic --check mode which for now is only implemented on template & copy operations. More detail will be shared with the list 2013-02-03 20:34:13 -05:00
cron Fix crontab doc formatting 2013-02-09 14:29:31 -05:00
debug DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
easy_install Update modules to use run_command in module_common.py 2013-01-13 08:37:19 -08:00
ec2 Had to remove the instance_tags example because our doc generator was choking on it, feel free to add it back if you can get it to be valid 2013-02-09 14:39:57 -05:00
ec2_facts If ec2 fact has ':' or '-', change to '_' 2013-01-31 21:00:25 -05:00
facter Various cleanup to run_command 2013-01-13 11:24:21 -08:00
fail DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
fetch DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
file Merge recursive file permission setting on directories 2013-02-09 12:01:45 -05:00
fireball Fix module.run_command usage in fireball 2013-01-28 12:40:18 +01:00
get_url Fix get_url to work on Python 2.4 2013-01-29 18:57:02 +01:00
git Git module: fix for relative paths 2013-01-25 20:49:30 -05:00
group Update modules to use run_command in module_common.py 2013-01-13 08:37:19 -08:00
group_by Add a group_by action plugin. 2012-10-29 13:10:23 +01:00
hg Specify repo option with hg pull 2013-02-04 17:19:59 -06:00
ini_file Remove last remnants of daisychaining 2013-01-28 17:46:35 +01:00
lineinfile Fix lineinfile docs formatting 2013-02-09 14:34:03 -05:00
mail mail module: add MIME attachments, port and addresses with phrases 2012-12-12 07:42:42 +01:00
mongodb_user Documentation formatting for mongodb_user so it will show up in ansible-doc and the web. 2013-02-09 14:43:17 -05:00
mount Update modules to use run_command in module_common.py 2013-01-13 08:37:19 -08:00
mysql_db Python 2.4 fixes for modules 2013-01-10 19:24:23 +01:00
mysql_user chmod -x for all module files in source checkout 2012-11-19 13:47:40 -05:00
nagios added support for scheduling downtime for all services on host 2012-12-03 22:40:27 +01:00
ohai Various cleanup to run_command 2013-01-13 11:24:21 -08:00
pacman Fix unparseable documentation strings 2013-01-25 14:25:12 +01:00
pause Reformat code: examples consistently 2012-10-23 15:14:01 +02:00
ping This implements a basic --check mode which for now is only implemented on template & copy operations. More detail will be shared with the list 2013-02-03 20:34:13 -05:00
pip library/pip: add support for virtualenv's --system-site-packages. 2013-02-04 17:03:25 -08:00
pkgin Use module.get_bin_path for pkgin module instead of hardcoding paths 2013-02-03 23:57:34 +01:00
postgresql_db add encoding documentation in postgresql_db 2013-01-07 12:58:18 +01:00
postgresql_user remove quotes in has_table_privilege and has_database_privilege 2013-01-05 19:31:31 +01:00
rabbitmq_plugin Updating how to run commands in check mode 2013-02-10 17:20:44 -05:00
rabbitmq_user Updating how to run commands in check mode 2013-02-10 17:20:44 -05:00
rabbitmq_vhost Adding aliases 2013-02-10 17:08:33 -05:00
raw Merge pull request #1798 from dagwieers/raw-executable 2013-01-08 08:35:08 -08:00
script Make script module use raw module so it does not require python 2012-12-24 00:24:34 +01:00
seboolean DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
selinux DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
service service status 4 should also be stopped 2013-02-07 21:29:31 -05:00
setup Fixing logical error in detecting virtual device. 2013-02-11 18:23:58 -08:00
shell DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
slurp Very basic --diff option for showing what happens when templates change. 2013-02-07 22:52:25 -05:00
subversion Various cleanup to run_command 2013-01-13 11:24:21 -08:00
supervisorctl always restart the program when state=restarted 2013-02-07 15:53:36 +08:00
svr4pkg Update modules to use run_command in module_common.py 2013-01-13 08:37:19 -08:00
sysctl sysctl was added in 1.0 2013-02-03 14:01:55 +01:00
template Added additional template variables 2013-01-04 16:36:02 +10:00
user Update modules to use run_command in module_common.py 2013-01-13 08:37:19 -08:00
virt chmod -x for all module files in source checkout 2012-11-19 13:47:40 -05:00
wait_for removed env as per project policy 2012-11-27 11:18:46 -05:00
yum use a local copy of repoq so we don't inadvertently pollute the one for is_installed 2013-02-01 16:47:53 -05:00