community.general/lib/ansible
Pilou ffee906c54 lvg: don't fail if an unknown physical device is encountered (#38446)
Physical devices are listed using 'pvs' command. Then, for
'/dev/dm-*' devices 'dmsetup' command is used to find pv_name.

An error occurs when 'pvs' command list an unknown device:

$ pvs --noheadings -o pv_name,vg_name --separator ';'
  /dev/dm-0;vg_var
  /dev/mapper/sdb3_backups;vg_data_backups
$ dmsetup info -C --noheadings -o name /dev/dm-0
Device dm-0 not found

Then the module fails:
{
  "changed": false,
  "err": "Device dm-0 not found\nCommand failed\n",
  "msg": "Failed executing dmsetup command.",
  "rc": 1
}

This failure can be avoided when the unknown device isn't used in
module parameter 'pvs'.
2018-04-08 05:04:28 -04:00
..
cli remove unused optoins from inventory cli 2018-04-05 18:40:24 -04:00
compat Enable wildcard import pylint (#35786) 2018-02-06 15:17:49 -08:00
config adds fix for terminal plugins 2018-03-05 08:54:40 -05:00
errors Make AnsibleActionDone a private exception 2018-01-22 23:36:34 -08:00
executor Fall back to ValueError if JSONDecodeError is not available (#38276) 2018-04-06 16:28:39 -04:00
galaxy Ansible Galaxy: skel for network role #37241 (#37251) 2018-03-09 13:31:27 -05:00
inventory Reduce recursion within group methods 2018-04-05 18:38:44 -04:00
module_utils Required changes to support redirects on HTTP 307/308 (#36809) 2018-04-06 13:17:14 -05:00
modules lvg: don't fail if an unknown physical device is encountered (#38446) 2018-04-08 05:04:28 -04:00
parsing Fix 'New Vault password' on vault 'edit' (#35923) 2018-03-27 14:12:21 -04:00
playbook Support for module param defaults (#22648) 2018-04-05 11:44:51 -04:00
plugins clarifying docs with first_found (#36951) 2018-04-06 17:19:15 -04:00
template Don't overwrite builtin jinja2 filters with tests (#37881) 2018-03-26 12:06:00 -05:00
utils Expose verbosity as a var, dedupe attr list. Fixes #36170 2018-04-05 16:06:01 -04:00
vars Fix ansible_lo being used inside of ansible_facts 2018-03-13 12:05:14 -04:00
__init__.py
constants.py Move module_set_locale and module_lang back to global 2018-01-22 18:38:15 -08:00
release.py Fix version in lib/ansible/release.py 2018-02-09 04:47:31 -08:00