community.general/lib/ansible/module_utils
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
..
six module_utils/six: PEP8 compliancy 2017-05-23 15:43:52 -07:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
_text.py Fix to bytes surrogate and nonencodable chars (#21180) 2017-02-09 17:13:40 -08:00
a10.py modified POST body in axapi_authenticate_v3() and axapi_call_v3() (#18104) 2016-11-23 11:10:58 -05:00
ansible_tower.py Ansible Tower job_launch module (#22148) 2017-03-01 19:57:35 +00:00
aos.py Fix errors reported by pylint. (#23282) 2017-04-06 16:58:16 -07:00
api.py Added basic auth argument spec to utils (#15585) 2016-04-25 14:55:39 -04:00
asa.py module_utils/asa: PEP8 compliancy (#24655) 2017-05-16 12:16:05 +01:00
avi.py Avi 17 1 (#24047) 2017-05-03 16:51:28 +01:00
azure_rm_common.py fix azure_rm version checks (#22270) 2017-03-03 13:28:08 -08:00
basic.py only set executable from shell if not set already 2017-05-22 18:06:55 -04:00
bigswitch_utils.py Remove unnecessary shebangs and execute bits. 2017-02-22 18:13:46 -08:00
ce.py Contributing new lib/ansible/module_utils/ce.py module to manage HUAWEI data center CloudEngine switch (#21666) 2017-05-17 18:36:34 +01:00
cloud.py CloudRetry/AWSRetry backoff decorator with unit tests (#17039) 2016-09-13 16:46:59 -04:00
cloudengine.py Contributing new module to manage HUAWEI data center CloudEngine switch. (#19793) 2017-01-03 22:30:59 -05:00
cloudstack.py cloudstack: add check mode tests (#24908) 2017-05-26 12:19:47 +02:00
cnos.py Fixes for idempotent issue in cnos_vlan module and fixes for vlag/portchannel tests. (#22385) 2017-03-08 17:09:17 +00:00
cnos_devicerules.py New module: cnos_vlan and various utility files (#21107) 2017-02-16 08:11:39 +00:00
cnos_errorcodes.py New module: cnos_vlan and various utility files (#21107) 2017-02-16 08:11:39 +00:00
connection.py adds connection module to module_utils (#21310) 2017-02-12 07:52:50 -05:00
database.py just a few spelling error changes 2015-04-28 09:36:42 -04:00
dellos6.py Add dellos6 changes for Python3 (#24606) 2017-05-17 00:36:32 +05:30
dellos9.py Add dellos9 changes for Python3 (#24607) 2017-05-17 00:36:52 +05:30
dellos10.py Add dellos10 changes for python3 (#24608) 2017-05-17 00:36:15 +05:30
dimensiondata.py Refactor dimensiondata_network module (#21043) 2017-02-09 11:30:31 +00:00
docker_common.py Docker does not output Status after pull anymore. 2017-05-24 16:07:17 -07:00
ec2.py Feature/aws helper function for tags (#23387) 2017-05-11 07:39:51 +01:00
eos.py Add eos changes for Python3 (#24600) 2017-05-24 19:40:38 +05:30
exoscale.py exoscale: pep8 and python3 fixes (#21821) 2017-02-25 10:32:39 +01:00
f5_cli.py Adds CLI classes for some F5 modules (#21119) 2017-02-08 18:25:20 +00:00
f5_utils.py Actual attributes were being created and messing with the modules (#22424) 2017-03-08 21:10:02 +00:00
facts.py added new selinux fact to clarify python lib 2017-05-25 10:37:52 -04:00
fortios.py Fortios file only mode + integration tests (#23275) 2017-05-09 13:51:19 +01:00
gcdns.py Fix import of gce/gcdns without a libcloud module 2016-07-29 13:34:09 -04:00
gce.py Fix import of gce/gcdns without a libcloud module 2016-07-29 13:34:09 -04:00
gcp.py [GCP] remove ansible.utils.display for deprecations (#24738) 2017-05-18 12:07:16 -04:00
infinibox.py Initial Commit for Infinidat Ansible Modules (#19429) 2016-12-22 13:18:19 +00:00
ios.py Add ios changes for Python3 (#24601) 2017-05-17 20:00:52 +05:30
iosxr.py Add iosxr changes for Python3 (#24605) 2017-05-17 00:32:41 +05:30
ipa.py IPA: Remove duplicated code and fix a bug that occurs if empty lists were passed and IPA didn't know the value before (#19210) 2017-02-08 14:16:44 +00:00
ismount.py fix typo 2016-02-08 19:10:04 +01:00
json_utils.py only warn if non whitespace junk 2017-01-06 17:07:42 -05:00
junos.py Fix IndexError when junos_config contains multiple delete lines (#25139) 2017-05-30 11:55:25 +05:30
k8s_common.py k8s/openshift module_utils split (#23115) 2017-03-30 19:02:17 +02:00
known_hosts.py Give user whatever information we have from ssh-keyscan 2017-05-05 08:35:04 -07:00
lxd.py Clean up shebangs for various files. 2016-11-02 17:00:27 -07:00
mysql.py E501 fixes (#22879) 2017-03-22 20:50:28 -05:00
netapp.py Add NetApp SolidFire volume module (#20732) 2017-02-16 15:21:14 -05:00
netcfg.py nxos_bgp updates (#24270) 2017-05-08 11:38:50 -04:00
netcli.py returns xml as a display option to junos_command (#21833) 2017-03-02 16:05:20 -06:00
netconf.py junos_config: Remove reliance on ability to output configuration in set format (#23225) 2017-04-04 15:00:00 -04:00
network.py Add no_log to all network module_utils provider argument (#22566) 2017-03-13 13:21:46 -06:00
network_common.py updates network_common lib (#21306) 2017-02-14 14:38:30 -05:00
nxos.py Remove deprecation for username/password eos_user, nxos_user and Doc update (#24880) 2017-05-22 20:02:36 +05:30
openshift_common.py k8s/openshift module_utils split (#23115) 2017-03-30 19:02:17 +02:00
openstack.py Restore validate_certs being a bool type 2017-02-17 09:17:05 -08:00
openswitch.py Cleanup openswitch 2016-09-12 13:35:57 -04:00
ordnance.py Added Ordnance Module (#21447) 2017-02-15 10:30:45 +00:00
ovirt.py cloud: ovirt: fix update_params for ovirt module_utils (#22637) 2017-03-15 08:04:06 -04:00
postgres.py Postgres ssl mode prefer (#21498) 2017-02-16 11:29:43 -08:00
powershell.ps1 Windows: Small fix to Add-Warning and Add-DeprecationWarning (#23520) 2017-05-09 09:18:37 -07:00
pycompat24.py Migrate basestring to a python3 compatible type (#17199) 2016-08-23 13:13:44 -07:00
rax.py module_utils/rax: Small parameter cleanup (#24664) 2017-05-16 10:02:04 -04:00
redhat.py Make configparser imports python3 ready 2017-02-03 21:15:34 -08:00
service.py Be explicit about pickle protocol and encoding (#24454) 2017-05-12 18:04:48 -07:00
shell.py fixs command dict to be sent to connection socket (#21713) 2017-02-22 09:44:04 -05:00
splitter.py Changing license on module_utils/splitter.py to BSD 2016-08-13 09:56:12 -05:00
sros.py Add sros changes for Python3 (#24604) 2017-05-17 00:33:36 +05:30
univention_umc.py univention: add common code for univention corporate server modules (#16172) 2016-08-27 09:42:53 +02:00
urls.py Update documentation of fetch_url in urls.py (#23892) 2017-05-01 09:57:37 -05:00
vca.py Misc Typo correction (#25025) 2017-05-25 16:14:39 +02:00
vmware.py vmware_guest: Fix VM creation when adding a network device without a MAC address (#24138) 2017-05-16 08:47:49 -07:00
vyos.py Add vyos changes for Python3 (#24603) 2017-05-17 00:32:59 +05:30