CiscoISE / ansible-ise

Official repository for Cisco's Ansible collection for ISE
https://ciscoise.github.io/ansible-ise/
GNU General Public License v3.0
45 stars 12 forks source link

Module cisco.ise.node_replication_status_info, AttributeError: no attribute 'replication_status' #127

Closed jifox closed 1 month ago

jifox commented 7 months ago

Prerequisites

Describe the bug A clear and concise description of what the bug is.

When I try to use the module

- name: Read all Replication-Status of ISE Nodes
    cisco.ise.node_replication_status_info:
      ise_hostname: "{{ cisco_ise_ers_hostname }}"
      ise_username: "{{ cisco_ise_ers_username }}"
      ise_password: "{{ cisco_ise_ers_password }}"
      ise_verify: "{{ cisco_ise_ers_validate_certs }}"
      ise_uses_api_gateway: "{{ cisco_ise_ers_uses_api_gateway }}"
      ise_version: "{{ cisco_ise_version }}"
      node: "{{ item }}"
    register: res_sgts
    delegate_to: localhost
    loop: "{{ cisco_ise_hosts|list }}"

I've tried both, ise_uses_api_gateway set to true and false

        An error occured when retrieving operation. The error was: 'IdentityServicesEngineAPI' object has no attribute 'replication_status'
        Traceback (most recent call last):
          File "/home/ansible/dev/develop/collections/ansible_collections/cisco/ise/plugins/plugin_utils/ise.py", line 221, in exec
            family = getattr(self.api, family)
        AttributeError: 'IdentityServicesEngineAPI' object has no attribute 'replication_status'

Expected behavior A clear and concise description of what you expected to happen.

Screenshots Please provide an screenshot of the successful API call with cuRL, Postman, etc.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

$ pip list | grep ciscoisesdk
ciscoisesdk               2.1.2

# /home/ansible/dev/develop/collections/ansible_collections
Collection                    Version
----------------------------- -------
ansible.netcommon             3.1.3  
ansible.utils                 2.12.0 
check_point.mgmt              4.0.0  
cisco.ise                     2.8.1  
community.general             5.8.10 
jifox.delinea_secrets_reader  1.0.0  
networktocode.nautobot        4.5.0  
fmunozmiranda commented 1 month ago

Hi @jifox , in our current API documentation, there´s no replication_status_info parameter for this endpoint, you could ask to include this to Cisco in a new version of ISE API, but this is not an ansible issue.