community.general/lib/ansible/module_utils
Juan Antonio Valiño García 40ddbe026d Fixes #18663. Bad handling of existing config in dellos9 module. (#18664)
* Fixes #18663. Bad handling of existing config in dellos9 module.

The dellos9 module doesn't build correctly the internal
structures used to represent the existing config of the managed
network device. This leads to apply changes every time the
playbook is run, even if the existing config is the same that the
one you are trying to push into the device.

Probably this problem exist also in the dellos6 and dellos10
modules, but I only fixed it in the dellos9 module.

The fix modifies two methods. The first one is `get_config`,
where the return clause didn't work correctly when the flow
doesn't enter in the `if` block. In that case the `contents`
variable is not an array an this should be handled.

The second fix is in the `get_sublevel_config` method. In this
case the indentation whitespaces of the parents should be rebuild
because further functions and methods required it to handle
correctly comparisons used to check if changes should be pushed
into device.

* Fixes #18663 for dellos10 module with the same patches as dellos9.
2016-12-12 15:51:32 -05:00
..
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
_text.py Simplify surrogate check in to_text() (#18211) 2016-10-29 09:12:02 -07:00
a10.py modified POST body in axapi_authenticate_v3() and axapi_call_v3() (#18104) 2016-11-23 11:10:58 -05:00
api.py Added basic auth argument spec to utils (#15585) 2016-04-25 14:55:39 -04:00
asa.py minor fix for checking kwargs in get_config() (#18002) 2016-10-13 15:12:49 -04:00
azure_rm_common.py fix version check to support >=rc5 2016-10-24 20:01:41 -07:00
basic.py log on target based on nolog, not verbosity (#18570) 2016-11-29 16:43:29 -05:00
cloud.py CloudRetry/AWSRetry backoff decorator with unit tests (#17039) 2016-09-13 16:46:59 -04:00
cloudstack.py cloudstack: add helpers to distinguish VMs not in VPC (#18560) 2016-11-20 23:51:50 +01:00
database.py just a few spelling error changes 2015-04-28 09:36:42 -04:00
dellos6.py Update OS6 sublevels (#17735) 2016-09-24 09:27:38 -04:00
dellos9.py Fixes #18663. Bad handling of existing config in dellos9 module. (#18664) 2016-12-12 15:51:32 -05:00
dellos10.py Fixes #18663. Bad handling of existing config in dellos9 module. (#18664) 2016-12-12 15:51:32 -05:00
docker_common.py Remove duplicate declaration of human_to_bytes 2016-11-07 12:04:32 -05:00
ec2.py Allow AWSRetry class to be created without boto3/botocore installed 2016-09-14 11:34:10 -04:00
eos.py fixes exception raised when extracting timeout value from ModuleStub in eapi (#18651) 2016-11-28 16:00:15 +00:00
exoscale.py exo_dns: new module utils and integration tests for exoscale DNS (#17230) 2016-08-30 21:48:28 +02:00
f5.py Clean up shebangs for various files. 2016-11-02 17:00:27 -07:00
facts.py Add RHEV host detection support (#17177) 2016-12-02 12:24:47 -05: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 Refactored gce util module to support other GCP services (#15924) 2016-07-28 12:54:39 -04:00
ios.py Network module cleanup (#17334) 2016-09-06 13:49:48 -04:00
iosxr.py clean up iosxr shared module 2016-09-11 23:32:05 -04:00
ipa.py FreeIPA module polymorphic restructuring, Python 3 support, and small fixes. (#18542) 2016-12-04 10:43:35 +00:00
ismount.py fix typo 2016-02-08 19:10:04 +01:00
json_utils.py bugfixes to JSON junk filter, added unit/integration tests to exercise (#17834) 2016-10-02 08:03:42 -07:00
junos.py fixes timeout param in netconf provider for junos (#18634) 2016-11-26 22:24:48 -05:00
known_hosts.py ssh-keyscan can fail to find keys for a host. 2016-12-01 07:53:18 -08:00
lxd.py Clean up shebangs for various files. 2016-11-02 17:00:27 -07:00
mysql.py enable mysql connection via unix socket 2016-04-12 14:16:18 +02:00
netcfg.py allow netcfg to pass kwargs from __call__ to configure() (#17653) 2016-09-19 22:27:31 -04:00
netcli.py adds new exception for adding condition statements to Conditional (#17859) 2016-10-02 14:47:58 -04:00
network.py Exception.message gone in 3.x (#18221) 2016-10-28 13:48:16 -04:00
nxos.py Add timeout option for nxapi (#18074) 2016-11-02 13:32:19 +00:00
openstack.py openstack: iterate through nova addresses with six (#18408) 2016-11-18 12:44:16 -08:00
openswitch.py Cleanup openswitch 2016-09-12 13:35:57 -04:00
ovirt.py module_utils: ovirt: Add support to fetch nested object's attributes (#18666) 2016-12-05 15:23:42 -05:00
powershell.ps1 Improved Get-PendingRebootStatus 2016-11-11 14:49:01 -08:00
pycompat24.py Migrate basestring to a python3 compatible type (#17199) 2016-08-23 13:13:44 -07:00
rax.py Migrate basestring to a python3 compatible type (#17199) 2016-08-23 13:13:44 -07:00
redhat.py Remove some more unused stdlib deps. 2015-11-03 09:53:18 -08:00
service.py dont fail on missing service during check mode 2016-11-22 16:16:55 -05:00
shell.py expose timeout param to socket (#18632) 2016-11-28 15:38:49 +00:00
six.py Some Python-3 module_utils support 2016-05-14 07:51:13 -07:00
splitter.py Changing license on module_utils/splitter.py to BSD 2016-08-13 09:56:12 -05:00
sros.py updates sros shared module 2016-09-11 23:34:46 -04:00
univention_umc.py univention: add common code for univention corporate server modules (#16172) 2016-08-27 09:42:53 +02:00
urls.py Fix adding the same trusted certificates multiple times (#18296) 2016-11-02 10:40:48 -07:00
vca.py Fux bug 18584 (#18718) 2016-12-04 10:46:41 +00:00
vmware.py Port the module snippet to python3 (#15870) 2016-05-16 08:04:43 -04:00
vyos.py fixes issue with setting the terminal length (pager) in vyos (#18546) 2016-11-21 15:47:48 +00:00