community.general/lib/ansible/modules
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
..
cloud cloudstack: fix pep8 cs_pod 2017-05-29 01:28:19 +02:00
clustering fixed RETURN docs for modules (#24011) 2017-04-26 15:56:13 +01:00
commands Fix expect for python 3 (#24912) 2017-05-23 15:51:46 -07:00
crypto fixed RETURN docs for modules (#24011) 2017-04-26 15:56:13 +01:00
database Allow setting/unsetting BYPASSRLS Postgres role attribute (#24625) 2017-05-26 12:56:42 -04:00
files Read directory_mode as 'raw' type 2017-05-23 11:33:19 -07:00
identity New metadata 1.0 (#22587) 2017-03-14 09:07:22 -07:00
inventory New metadata 1.0 (#22587) 2017-03-14 09:07:22 -07:00
messaging Fix #23338 - rabbitmq_queue message ttl can't be 0 (#23448) 2017-04-15 00:51:40 +02:00
monitoring New module: Add Sensu Silence module (monitoring/sensu_silence.py) (#24332) 2017-05-26 11:49:52 +01:00
net_tools Correct nmcli dns example and documentation. Fix example indent (#20203) 2017-05-26 15:58:00 +01:00
network Fix IndexError when junos_config contains multiple delete lines (#25139) 2017-05-30 11:55:25 +05:30
notification Fixed import of urlencode and pathname2url from urllib for python3 (#24424) 2017-05-19 12:22:16 -05:00
packaging Added autoclean/autoremove for the apt module 2017-05-25 14:18:20 -07:00
remote_management Remove redundant find_content_view method (#24851) 2017-05-26 20:06:02 +01:00
source_control Add Password for login method in github_release (#23661) 2017-05-19 08:49:05 +01:00
storage fixed RETURN docs for modules (#24011) 2017-04-26 15:56:13 +01:00
system Fixed backup file behavior in check mode (#24899) 2017-05-26 16:16:15 +02:00
utilities docs update, use connection: local vs local_action 2017-05-24 14:09:25 -04:00
web_infrastructure Cmp python3 compat (#25008) 2017-05-24 15:59:59 -07:00
windows New module: Add module to manage Windows Firewall (windows/win_firewall) (#23224) 2017-05-26 09:26:48 -04:00
__init__.py Re-adding the init py for modules 2016-12-08 11:35:20 -05:00