ansible-collections/cisco.nxos

nxos_route_maps description parameter idempotency

tnizharadze opened this issue · 0 comments

SUMMARY

When description parameter has whitespaces, then idempotency not works

ISSUE TYPE
  • Bug Report
COMPONENT NAME

cisco.nxos.nxos_route_maps

ANSIBLE VERSION
ansible [core 2.13.8]
  config file = /home/ansible/ansible/ansible.cfg
  configured module search path = ['/home/ansible/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/ansible/.local/lib/python3.8/site-packages/ansible
  ansible collection location = /home/ansible/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/ansible/.local/bin/ansible
  python version = 3.8.10 (default, Nov 14 2022, 12:59:47) [GCC 9.4.0]
  jinja version = 3.1.2
  libyaml = True
COLLECTION VERSION
Collection Version
---------- -------
cisco.nxos 0.0.0
CONFIGURATION
CACHE_PLUGIN(/home/ansible/ansible/ansible.cfg) = memory
DEFAULT_FORKS(/home/ansible/ansible/ansible.cfg) = 5
DEFAULT_GATHERING(/home/ansible/ansible/ansible.cfg) = explicit
DEFAULT_HOST_LIST(/home/ansible/ansible/ansible.cfg) = ['/home/ansible/ansible/inventories']
DEFAULT_STRATEGY(/home/ansible/ansible/ansible.cfg) = free
HOST_KEY_CHECKING(/home/ansible/ansible/ansible.cfg) = False
INJECT_FACTS_AS_VARS(/home/ansible/ansible/ansible.cfg) = False
OS / ENVIRONMENT

Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal

STEPS TO REPRODUCE
---
- name: Test route-map description idempotency
  hosts: bd-sw-dtl010-leaf-1
  tasks:
    - cisco.nxos.nxos_route_maps:
        config:
          - route_map: rmap1
            entries:
              - sequence: 10
                action: permit
                description: "Description with spaces"
EXPECTED RESULTS

PLAY [Test route-map description idempotency] ****************************************************************************************************************************************

TASK [cisco.nxos.nxos_route_maps] ****************************************************************************************************************************************************
ok: [bd-sw-dtl010-leaf-1]

PLAY RECAP ***************************************************************************************************************************************************************************
bd-sw-dtl010-leaf-1 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0

ACTUAL RESULTS
PLAY [Test route-map description idempotency] ********************************************************************************************************************************************************

TASK [cisco.nxos.nxos_route_maps] ********************************************************************************************************************************************************************
changed: [bd-sw-dtl010-leaf-1]

PLAY RECAP *******************************************************************************************************************************************************************************************
bd-sw-dtl010-leaf-1        : ok=1    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0