community.general/lib/ansible
Sander Steffann 06f76a2741 Fix IndexError when junos_config contains multiple delete lines (#25139)
* Prevent IndexError when deleting multiple lines

The old code will raise `IndexError: list assignment index out of range` when deleting multiple lines because the indexes of the original and the copy get out of sync. Solved by deleting from the high indexes first so the lower ones remain stable.

* Don't load configuration if nothing to load

Instead of sending an empty candidate config (for example because the candidate only consisted of `delete` lines, and all of them were filtered out by `filter_delete_statements`) just return. JunOS seems to get confused by empty changes, and if the candidate config is empty then it's a no-op anyway.
2017-05-30 11:55:25 +05:30
..
cli path cli options now resolve relative paths to cli 2017-05-25 14:29:27 -04:00
compat ansible/compat/: PEP8 compliancy (#24689) 2017-05-18 08:36:11 +01:00
config
errors ansible/errors: PEP8 compliancy (#24693) 2017-05-18 08:34:57 +01:00
executor Expose variable_manager to PlayIterator 2017-05-24 21:59:13 -04:00
galaxy Transition inventory into plugins (#23001) 2017-05-23 17:16:49 -04:00
inventory made inventory plugins list to keep config order 2017-05-28 10:36:36 -04:00
module_utils Fix IndexError when junos_config contains multiple delete lines (#25139) 2017-05-30 11:55:25 +05:30
modules Fix IndexError when junos_config contains multiple delete lines (#25139) 2017-05-30 11:55:25 +05:30
parsing removed unused import 2017-05-24 11:55:56 -04:00
playbook Transition inventory into plugins (#23001) 2017-05-23 17:16:49 -04:00
plugins only set ansible_host if i have data 2017-05-28 11:19:44 -04:00
template fix from https://github.com/ansible/ansible/pull/23001 2017-05-19 09:41:09 -04:00
utils Transition inventory into plugins (#23001) 2017-05-23 17:16:49 -04:00
vars Transition inventory into plugins (#23001) 2017-05-23 17:16:49 -04:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py Contributing new /lib/ansible/plugins/action/ce.py module to manage HUAWEI data center CloudEngine switch (#21645) 2017-05-25 17:33:57 +01:00
release.py Bumping devel version to 2.4.0 2017-03-15 09:42:01 -05:00