From 257ac9d17581bb67c24e7148e7bab37fc28ec64c Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Wed, 15 Jan 2020 10:35:57 +0530 Subject: [PATCH] Fortios: Correct underscore_to_hyphen API (#66119) Signed-off-by: Abhijeet Kasurde --- changelogs/fragments/fortios_fix.yml | 2 ++ .../modules/network/fortios/fortios_alertemail_setting.py | 4 ++-- .../modules/network/fortios/fortios_antivirus_heuristic.py | 4 ++-- .../modules/network/fortios/fortios_antivirus_profile.py | 4 ++-- .../modules/network/fortios/fortios_antivirus_quarantine.py | 4 ++-- .../modules/network/fortios/fortios_antivirus_settings.py | 4 ++-- .../modules/network/fortios/fortios_application_custom.py | 4 ++-- .../modules/network/fortios/fortios_application_group.py | 4 ++-- .../modules/network/fortios/fortios_application_list.py | 4 ++-- .../modules/network/fortios/fortios_application_name.py | 4 ++-- .../network/fortios/fortios_application_rule_settings.py | 4 ++-- .../modules/network/fortios/fortios_authentication_rule.py | 4 ++-- .../modules/network/fortios/fortios_authentication_scheme.py | 4 ++-- .../modules/network/fortios/fortios_authentication_setting.py | 4 ++-- .../modules/network/fortios/fortios_dlp_filepattern.py | 4 ++-- .../modules/network/fortios/fortios_dlp_fp_doc_source.py | 4 ++-- .../modules/network/fortios/fortios_dlp_fp_sensitivity.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_dlp_sensor.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_dlp_settings.py | 4 ++-- .../network/fortios/fortios_dnsfilter_domain_filter.py | 4 ++-- .../modules/network/fortios/fortios_dnsfilter_profile.py | 4 ++-- .../network/fortios/fortios_endpoint_control_client.py | 4 ++-- .../fortios/fortios_endpoint_control_forticlient_ems.py | 4 ++-- .../fortios_endpoint_control_forticlient_registration_sync.py | 4 ++-- .../network/fortios/fortios_endpoint_control_profile.py | 4 ++-- .../network/fortios/fortios_endpoint_control_settings.py | 4 ++-- .../network/fortios/fortios_extender_controller_extender.py | 4 ++-- .../modules/network/fortios/fortios_firewall_DoS_policy.py | 4 ++-- .../modules/network/fortios/fortios_firewall_DoS_policy6.py | 4 ++-- .../modules/network/fortios/fortios_firewall_address.py | 4 ++-- .../modules/network/fortios/fortios_firewall_address6.py | 4 ++-- .../network/fortios/fortios_firewall_address6_template.py | 4 ++-- .../modules/network/fortios/fortios_firewall_addrgrp.py | 4 ++-- .../modules/network/fortios/fortios_firewall_addrgrp6.py | 4 ++-- .../modules/network/fortios/fortios_firewall_auth_portal.py | 4 ++-- .../network/fortios/fortios_firewall_central_snat_map.py | 4 ++-- .../network/fortios/fortios_firewall_dnstranslation.py | 4 ++-- .../network/fortios/fortios_firewall_identity_based_route.py | 4 ++-- .../network/fortios/fortios_firewall_interface_policy.py | 4 ++-- .../network/fortios/fortios_firewall_interface_policy6.py | 4 ++-- .../network/fortios/fortios_firewall_internet_service.py | 4 ++-- .../fortios/fortios_firewall_internet_service_custom.py | 4 ++-- .../fortios/fortios_firewall_internet_service_group.py | 4 ++-- .../network/fortios/fortios_firewall_ip_translation.py | 4 ++-- .../network/fortios/fortios_firewall_ipmacbinding_setting.py | 4 ++-- .../network/fortios/fortios_firewall_ipmacbinding_table.py | 4 ++-- .../modules/network/fortios/fortios_firewall_ippool.py | 4 ++-- .../modules/network/fortios/fortios_firewall_ippool6.py | 4 ++-- .../network/fortios/fortios_firewall_ipv6_eh_filter.py | 4 ++-- .../modules/network/fortios/fortios_firewall_ldb_monitor.py | 4 ++-- .../network/fortios/fortios_firewall_local_in_policy.py | 4 ++-- .../network/fortios/fortios_firewall_local_in_policy6.py | 4 ++-- .../network/fortios/fortios_firewall_multicast_address.py | 4 ++-- .../network/fortios/fortios_firewall_multicast_address6.py | 4 ++-- .../network/fortios/fortios_firewall_multicast_policy.py | 4 ++-- .../network/fortios/fortios_firewall_multicast_policy6.py | 4 ++-- .../modules/network/fortios/fortios_firewall_policy.py | 4 ++-- .../modules/network/fortios/fortios_firewall_policy46.py | 4 ++-- .../modules/network/fortios/fortios_firewall_policy6.py | 4 ++-- .../modules/network/fortios/fortios_firewall_policy64.py | 4 ++-- .../modules/network/fortios/fortios_firewall_profile_group.py | 4 ++-- .../fortios/fortios_firewall_profile_protocol_options.py | 4 ++-- .../modules/network/fortios/fortios_firewall_proxy_address.py | 4 ++-- .../modules/network/fortios/fortios_firewall_proxy_addrgrp.py | 4 ++-- .../modules/network/fortios/fortios_firewall_proxy_policy.py | 4 ++-- .../network/fortios/fortios_firewall_schedule_group.py | 4 ++-- .../network/fortios/fortios_firewall_schedule_onetime.py | 4 ++-- .../network/fortios/fortios_firewall_schedule_recurring.py | 4 ++-- .../network/fortios/fortios_firewall_service_category.py | 4 ++-- .../network/fortios/fortios_firewall_service_custom.py | 4 ++-- .../modules/network/fortios/fortios_firewall_service_group.py | 4 ++-- .../network/fortios/fortios_firewall_shaper_per_ip_shaper.py | 4 ++-- .../network/fortios/fortios_firewall_shaper_traffic_shaper.py | 4 ++-- .../network/fortios/fortios_firewall_shaping_policy.py | 4 ++-- .../network/fortios/fortios_firewall_shaping_profile.py | 4 ++-- .../modules/network/fortios/fortios_firewall_sniffer.py | 4 ++-- .../modules/network/fortios/fortios_firewall_ssh_host_key.py | 4 ++-- .../modules/network/fortios/fortios_firewall_ssh_local_ca.py | 4 ++-- .../modules/network/fortios/fortios_firewall_ssh_local_key.py | 4 ++-- .../modules/network/fortios/fortios_firewall_ssh_setting.py | 4 ++-- .../modules/network/fortios/fortios_firewall_ssl_server.py | 4 ++-- .../modules/network/fortios/fortios_firewall_ssl_setting.py | 4 ++-- .../network/fortios/fortios_firewall_ssl_ssh_profile.py | 4 ++-- .../modules/network/fortios/fortios_firewall_ttl_policy.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_firewall_vip.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_firewall_vip46.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_firewall_vip6.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_firewall_vip64.py | 4 ++-- .../modules/network/fortios/fortios_firewall_vipgrp.py | 4 ++-- .../modules/network/fortios/fortios_firewall_vipgrp46.py | 4 ++-- .../modules/network/fortios/fortios_firewall_vipgrp6.py | 4 ++-- .../modules/network/fortios/fortios_firewall_vipgrp64.py | 4 ++-- .../network/fortios/fortios_firewall_wildcard_fqdn_custom.py | 4 ++-- .../network/fortios/fortios_firewall_wildcard_fqdn_group.py | 4 ++-- .../modules/network/fortios/fortios_ftp_proxy_explicit.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_icap_profile.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_icap_server.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_ips_custom.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_ips_decoder.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_ips_global.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_ips_rule.py | 4 ++-- .../modules/network/fortios/fortios_ips_rule_settings.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_ips_sensor.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_ips_settings.py | 4 ++-- .../modules/network/fortios/fortios_log_custom_field.py | 4 ++-- .../modules/network/fortios/fortios_log_disk_filter.py | 4 ++-- .../modules/network/fortios/fortios_log_disk_setting.py | 4 ++-- .../modules/network/fortios/fortios_log_eventfilter.py | 4 ++-- .../network/fortios/fortios_log_fortianalyzer2_filter.py | 4 ++-- .../network/fortios/fortios_log_fortianalyzer2_setting.py | 4 ++-- .../network/fortios/fortios_log_fortianalyzer3_filter.py | 4 ++-- .../network/fortios/fortios_log_fortianalyzer3_setting.py | 4 ++-- .../network/fortios/fortios_log_fortianalyzer_filter.py | 4 ++-- .../fortios/fortios_log_fortianalyzer_override_filter.py | 4 ++-- .../fortios/fortios_log_fortianalyzer_override_setting.py | 4 ++-- .../network/fortios/fortios_log_fortianalyzer_setting.py | 4 ++-- .../modules/network/fortios/fortios_log_fortiguard_filter.py | 4 ++-- .../network/fortios/fortios_log_fortiguard_override_filter.py | 4 ++-- .../fortios/fortios_log_fortiguard_override_setting.py | 4 ++-- .../modules/network/fortios/fortios_log_fortiguard_setting.py | 4 ++-- .../modules/network/fortios/fortios_log_gui_display.py | 4 ++-- .../modules/network/fortios/fortios_log_memory_filter.py | 4 ++-- .../network/fortios/fortios_log_memory_global_setting.py | 4 ++-- .../modules/network/fortios/fortios_log_memory_setting.py | 4 ++-- .../modules/network/fortios/fortios_log_null_device_filter.py | 4 ++-- .../network/fortios/fortios_log_null_device_setting.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_log_setting.py | 4 ++-- .../modules/network/fortios/fortios_log_syslogd2_filter.py | 4 ++-- .../modules/network/fortios/fortios_log_syslogd2_setting.py | 4 ++-- .../modules/network/fortios/fortios_log_syslogd3_filter.py | 4 ++-- .../modules/network/fortios/fortios_log_syslogd3_setting.py | 4 ++-- .../modules/network/fortios/fortios_log_syslogd4_filter.py | 4 ++-- .../modules/network/fortios/fortios_log_syslogd4_setting.py | 4 ++-- .../modules/network/fortios/fortios_log_syslogd_filter.py | 4 ++-- .../network/fortios/fortios_log_syslogd_override_filter.py | 4 ++-- .../network/fortios/fortios_log_syslogd_override_setting.py | 4 ++-- .../modules/network/fortios/fortios_log_syslogd_setting.py | 4 ++-- .../modules/network/fortios/fortios_log_threat_weight.py | 4 ++-- .../modules/network/fortios/fortios_log_webtrends_filter.py | 4 ++-- .../modules/network/fortios/fortios_log_webtrends_setting.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_report_chart.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_report_dataset.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_report_layout.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_report_setting.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_report_style.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_report_theme.py | 4 ++-- .../modules/network/fortios/fortios_router_access_list.py | 4 ++-- .../modules/network/fortios/fortios_router_access_list6.py | 4 ++-- .../modules/network/fortios/fortios_router_aspath_list.py | 4 ++-- .../modules/network/fortios/fortios_router_auth_path.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_router_bfd.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_router_bfd6.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_router_bgp.py | 4 ++-- .../modules/network/fortios/fortios_router_community_list.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_router_isis.py | 4 ++-- .../modules/network/fortios/fortios_router_key_chain.py | 4 ++-- .../modules/network/fortios/fortios_router_multicast.py | 4 ++-- .../modules/network/fortios/fortios_router_multicast6.py | 4 ++-- .../modules/network/fortios/fortios_router_multicast_flow.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_router_ospf.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_router_ospf6.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_router_policy.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_router_policy6.py | 4 ++-- .../modules/network/fortios/fortios_router_prefix_list.py | 4 ++-- .../modules/network/fortios/fortios_router_prefix_list6.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_router_rip.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_router_ripng.py | 4 ++-- .../modules/network/fortios/fortios_router_route_map.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_router_setting.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_router_static.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_router_static6.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_spamfilter_bwl.py | 4 ++-- .../modules/network/fortios/fortios_spamfilter_bword.py | 4 ++-- .../modules/network/fortios/fortios_spamfilter_dnsbl.py | 4 ++-- .../modules/network/fortios/fortios_spamfilter_fortishield.py | 4 ++-- .../modules/network/fortios/fortios_spamfilter_iptrust.py | 4 ++-- .../modules/network/fortios/fortios_spamfilter_mheader.py | 4 ++-- .../modules/network/fortios/fortios_spamfilter_options.py | 4 ++-- .../modules/network/fortios/fortios_spamfilter_profile.py | 4 ++-- .../modules/network/fortios/fortios_ssh_filter_profile.py | 4 ++-- .../fortios/fortios_switch_controller_802_1X_settings.py | 4 ++-- .../fortios/fortios_switch_controller_custom_command.py | 4 ++-- .../network/fortios/fortios_switch_controller_global.py | 4 ++-- .../fortios/fortios_switch_controller_igmp_snooping.py | 4 ++-- .../network/fortios/fortios_switch_controller_lldp_profile.py | 4 ++-- .../fortios/fortios_switch_controller_lldp_settings.py | 4 ++-- .../fortios/fortios_switch_controller_mac_sync_settings.py | 4 ++-- .../fortios/fortios_switch_controller_managed_switch.py | 4 ++-- .../fortios_switch_controller_network_monitor_settings.py | 4 ++-- .../fortios/fortios_switch_controller_qos_dot1p_map.py | 4 ++-- .../fortios/fortios_switch_controller_qos_ip_dscp_map.py | 4 ++-- .../fortios/fortios_switch_controller_qos_qos_policy.py | 4 ++-- .../fortios/fortios_switch_controller_qos_queue_policy.py | 4 ++-- .../network/fortios/fortios_switch_controller_quarantine.py | 4 ++-- .../fortios_switch_controller_security_policy_802_1X.py | 4 ++-- ...ortios_switch_controller_security_policy_captive_portal.py | 4 ++-- .../network/fortios/fortios_switch_controller_sflow.py | 4 ++-- .../fortios/fortios_switch_controller_storm_control.py | 4 ++-- .../network/fortios/fortios_switch_controller_stp_settings.py | 4 ++-- .../network/fortios/fortios_switch_controller_switch_group.py | 4 ++-- .../fortios/fortios_switch_controller_switch_interface_tag.py | 4 ++-- .../network/fortios/fortios_switch_controller_switch_log.py | 4 ++-- .../fortios/fortios_switch_controller_switch_profile.py | 4 ++-- .../network/fortios/fortios_switch_controller_system.py | 4 ++-- .../fortios/fortios_switch_controller_virtual_port_pool.py | 4 ++-- .../modules/network/fortios/fortios_switch_controller_vlan.py | 4 ++-- .../modules/network/fortios/fortios_system_accprofile.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_system_admin.py | 4 ++-- .../network/fortios/fortios_system_affinity_interrupt.py | 4 ++-- .../fortios/fortios_system_affinity_packet_redistribution.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_system_alarm.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_system_alias.py | 4 ++-- .../modules/network/fortios/fortios_system_api_user.py | 4 ++-- .../modules/network/fortios/fortios_system_arp_table.py | 4 ++-- .../modules/network/fortios/fortios_system_auto_install.py | 4 ++-- .../modules/network/fortios/fortios_system_auto_script.py | 4 ++-- .../network/fortios/fortios_system_automation_action.py | 4 ++-- .../network/fortios/fortios_system_automation_destination.py | 4 ++-- .../network/fortios/fortios_system_automation_stitch.py | 4 ++-- .../network/fortios/fortios_system_automation_trigger.py | 4 ++-- .../network/fortios/fortios_system_autoupdate_push_update.py | 4 ++-- .../network/fortios/fortios_system_autoupdate_schedule.py | 4 ++-- .../network/fortios/fortios_system_autoupdate_tunneling.py | 4 ++-- .../network/fortios/fortios_system_central_management.py | 4 ++-- .../modules/network/fortios/fortios_system_cluster_sync.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_system_console.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_system_csf.py | 4 ++-- .../modules/network/fortios/fortios_system_custom_language.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_system_ddns.py | 4 ++-- .../modules/network/fortios/fortios_system_dedicated_mgmt.py | 4 ++-- .../modules/network/fortios/fortios_system_dhcp6_server.py | 4 ++-- .../modules/network/fortios/fortios_system_dhcp_server.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_system_dns.py | 4 ++-- .../modules/network/fortios/fortios_system_dns_database.py | 4 ++-- .../modules/network/fortios/fortios_system_dns_server.py | 4 ++-- .../network/fortios/fortios_system_dscp_based_priority.py | 4 ++-- .../modules/network/fortios/fortios_system_email_server.py | 4 ++-- .../network/fortios/fortios_system_external_resource.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_system_fips_cc.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_system_fm.py | 4 ++-- .../modules/network/fortios/fortios_system_fortiguard.py | 4 ++-- .../modules/network/fortios/fortios_system_fortimanager.py | 4 ++-- .../modules/network/fortios/fortios_system_fortisandbox.py | 4 ++-- .../modules/network/fortios/fortios_system_fsso_polling.py | 4 ++-- .../modules/network/fortios/fortios_system_ftm_push.py | 4 ++-- .../modules/network/fortios/fortios_system_geoip_override.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_system_global.py | 4 ++-- .../modules/network/fortios/fortios_system_gre_tunnel.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_system_ha.py | 4 ++-- .../modules/network/fortios/fortios_system_ha_monitor.py | 4 ++-- .../modules/network/fortios/fortios_system_interface.py | 4 ++-- .../modules/network/fortios/fortios_system_ipip_tunnel.py | 4 ++-- .../network/fortios/fortios_system_ips_urlfilter_dns.py | 4 ++-- .../network/fortios/fortios_system_ips_urlfilter_dns6.py | 4 ++-- .../network/fortios/fortios_system_ipv6_neighbor_cache.py | 4 ++-- .../modules/network/fortios/fortios_system_ipv6_tunnel.py | 4 ++-- .../modules/network/fortios/fortios_system_link_monitor.py | 4 ++-- .../network/fortios/fortios_system_mac_address_table.py | 4 ++-- .../network/fortios/fortios_system_management_tunnel.py | 4 ++-- .../modules/network/fortios/fortios_system_mobile_tunnel.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_system_nat64.py | 4 ++-- .../modules/network/fortios/fortios_system_nd_proxy.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_system_netflow.py | 4 ++-- .../network/fortios/fortios_system_network_visibility.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_system_ntp.py | 4 ++-- .../modules/network/fortios/fortios_system_object_tagging.py | 4 ++-- .../modules/network/fortios/fortios_system_password_policy.py | 4 ++-- .../fortios/fortios_system_password_policy_guest_admin.py | 4 ++-- .../modules/network/fortios/fortios_system_pppoe_interface.py | 4 ++-- .../modules/network/fortios/fortios_system_probe_response.py | 4 ++-- .../modules/network/fortios/fortios_system_proxy_arp.py | 4 ++-- .../network/fortios/fortios_system_replacemsg_admin.py | 4 ++-- .../network/fortios/fortios_system_replacemsg_alertmail.py | 4 ++-- .../modules/network/fortios/fortios_system_replacemsg_auth.py | 4 ++-- .../fortios_system_replacemsg_device_detection_portal.py | 4 ++-- .../modules/network/fortios/fortios_system_replacemsg_ec.py | 4 ++-- .../fortios/fortios_system_replacemsg_fortiguard_wf.py | 4 ++-- .../modules/network/fortios/fortios_system_replacemsg_ftp.py | 4 ++-- .../network/fortios/fortios_system_replacemsg_group.py | 4 ++-- .../modules/network/fortios/fortios_system_replacemsg_http.py | 4 ++-- .../modules/network/fortios/fortios_system_replacemsg_icap.py | 4 ++-- .../network/fortios/fortios_system_replacemsg_image.py | 4 ++-- .../modules/network/fortios/fortios_system_replacemsg_mail.py | 4 ++-- .../network/fortios/fortios_system_replacemsg_nac_quar.py | 4 ++-- .../modules/network/fortios/fortios_system_replacemsg_nntp.py | 4 ++-- .../modules/network/fortios/fortios_system_replacemsg_spam.py | 4 ++-- .../network/fortios/fortios_system_replacemsg_sslvpn.py | 4 ++-- .../fortios/fortios_system_replacemsg_traffic_quota.py | 4 ++-- .../modules/network/fortios/fortios_system_replacemsg_utm.py | 4 ++-- .../network/fortios/fortios_system_replacemsg_webproxy.py | 4 ++-- .../modules/network/fortios/fortios_system_resource_limits.py | 4 ++-- .../modules/network/fortios/fortios_system_sdn_connector.py | 4 ++-- .../modules/network/fortios/fortios_system_session_helper.py | 4 ++-- .../modules/network/fortios/fortios_system_session_ttl.py | 4 ++-- .../modules/network/fortios/fortios_system_settings.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_system_sflow.py | 4 ++-- .../modules/network/fortios/fortios_system_sit_tunnel.py | 4 ++-- .../modules/network/fortios/fortios_system_sms_server.py | 4 ++-- .../modules/network/fortios/fortios_system_snmp_community.py | 4 ++-- .../modules/network/fortios/fortios_system_snmp_sysinfo.py | 4 ++-- .../modules/network/fortios/fortios_system_snmp_user.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_system_storage.py | 4 ++-- .../network/fortios/fortios_system_switch_interface.py | 4 ++-- .../network/fortios/fortios_system_tos_based_priority.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_system_vdom.py | 4 ++-- .../modules/network/fortios/fortios_system_vdom_dns.py | 4 ++-- .../modules/network/fortios/fortios_system_vdom_exception.py | 4 ++-- .../modules/network/fortios/fortios_system_vdom_link.py | 4 ++-- .../modules/network/fortios/fortios_system_vdom_netflow.py | 4 ++-- .../modules/network/fortios/fortios_system_vdom_property.py | 4 ++-- .../network/fortios/fortios_system_vdom_radius_server.py | 4 ++-- .../modules/network/fortios/fortios_system_vdom_sflow.py | 4 ++-- .../network/fortios/fortios_system_virtual_wan_link.py | 4 ++-- .../network/fortios/fortios_system_virtual_wire_pair.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_system_vxlan.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_system_wccp.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_system_zone.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_user_adgrp.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_user_device.py | 4 ++-- .../network/fortios/fortios_user_device_access_list.py | 4 ++-- .../modules/network/fortios/fortios_user_device_category.py | 4 ++-- .../modules/network/fortios/fortios_user_device_group.py | 4 ++-- .../modules/network/fortios/fortios_user_domain_controller.py | 4 ++-- .../modules/network/fortios/fortios_user_fortitoken.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_user_fsso.py | 4 ++-- .../modules/network/fortios/fortios_user_fsso_polling.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_user_group.py | 4 ++-- .../modules/network/fortios/fortios_user_krb_keytab.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_user_ldap.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_user_local.py | 4 ++-- .../modules/network/fortios/fortios_user_password_policy.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_user_peer.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_user_peergrp.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_user_pop3.py | 4 ++-- .../modules/network/fortios/fortios_user_quarantine.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_user_radius.py | 4 ++-- .../network/fortios/fortios_user_security_exempt_list.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_user_setting.py | 4 ++-- .../modules/network/fortios/fortios_user_tacacsplus.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_voip_profile.py | 4 ++-- .../modules/network/fortios/fortios_vpn_certificate_ca.py | 4 ++-- .../modules/network/fortios/fortios_vpn_certificate_crl.py | 4 ++-- .../modules/network/fortios/fortios_vpn_certificate_local.py | 4 ++-- .../network/fortios/fortios_vpn_certificate_ocsp_server.py | 4 ++-- .../modules/network/fortios/fortios_vpn_certificate_remote.py | 4 ++-- .../network/fortios/fortios_vpn_certificate_setting.py | 4 ++-- .../modules/network/fortios/fortios_vpn_ipsec_concentrator.py | 4 ++-- .../modules/network/fortios/fortios_vpn_ipsec_forticlient.py | 4 ++-- .../modules/network/fortios/fortios_vpn_ipsec_manualkey.py | 4 ++-- .../network/fortios/fortios_vpn_ipsec_manualkey_interface.py | 4 ++-- .../modules/network/fortios/fortios_vpn_ipsec_phase1.py | 4 ++-- .../network/fortios/fortios_vpn_ipsec_phase1_interface.py | 4 ++-- .../modules/network/fortios/fortios_vpn_ipsec_phase2.py | 4 ++-- .../network/fortios/fortios_vpn_ipsec_phase2_interface.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_vpn_l2tp.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_vpn_pptp.py | 4 ++-- .../modules/network/fortios/fortios_vpn_ssl_settings.py | 4 ++-- .../fortios/fortios_vpn_ssl_web_host_check_software.py | 4 ++-- .../modules/network/fortios/fortios_vpn_ssl_web_portal.py | 4 ++-- .../modules/network/fortios/fortios_vpn_ssl_web_realm.py | 4 ++-- .../network/fortios/fortios_vpn_ssl_web_user_bookmark.py | 4 ++-- .../fortios/fortios_vpn_ssl_web_user_group_bookmark.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_waf_main_class.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_waf_profile.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_waf_signature.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_waf_sub_class.py | 4 ++-- .../modules/network/fortios/fortios_wanopt_auth_group.py | 4 ++-- .../modules/network/fortios/fortios_wanopt_cache_service.py | 4 ++-- .../fortios/fortios_wanopt_content_delivery_network_rule.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_wanopt_peer.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_wanopt_profile.py | 4 ++-- .../modules/network/fortios/fortios_wanopt_remote_storage.py | 4 ++-- .../modules/network/fortios/fortios_wanopt_settings.py | 4 ++-- .../modules/network/fortios/fortios_wanopt_webcache.py | 4 ++-- .../modules/network/fortios/fortios_web_proxy_debug_url.py | 4 ++-- .../modules/network/fortios/fortios_web_proxy_explicit.py | 4 ++-- .../network/fortios/fortios_web_proxy_forward_server.py | 4 ++-- .../network/fortios/fortios_web_proxy_forward_server_group.py | 4 ++-- .../modules/network/fortios/fortios_web_proxy_global.py | 4 ++-- .../modules/network/fortios/fortios_web_proxy_profile.py | 4 ++-- .../modules/network/fortios/fortios_web_proxy_url_match.py | 4 ++-- lib/ansible/modules/network/fortios/fortios_web_proxy_wisp.py | 4 ++-- .../modules/network/fortios/fortios_webfilter_content.py | 4 ++-- .../network/fortios/fortios_webfilter_content_header.py | 4 ++-- .../modules/network/fortios/fortios_webfilter_fortiguard.py | 4 ++-- .../network/fortios/fortios_webfilter_ftgd_local_cat.py | 4 ++-- .../network/fortios/fortios_webfilter_ftgd_local_rating.py | 4 ++-- .../fortios/fortios_webfilter_ips_urlfilter_cache_setting.py | 4 ++-- .../fortios/fortios_webfilter_ips_urlfilter_setting.py | 4 ++-- .../fortios/fortios_webfilter_ips_urlfilter_setting6.py | 4 ++-- .../modules/network/fortios/fortios_webfilter_override.py | 4 ++-- .../modules/network/fortios/fortios_webfilter_profile.py | 4 ++-- .../network/fortios/fortios_webfilter_search_engine.py | 4 ++-- .../modules/network/fortios/fortios_webfilter_urlfilter.py | 4 ++-- .../network/fortios/fortios_wireless_controller_ap_status.py | 4 ++-- .../fortios/fortios_wireless_controller_ble_profile.py | 4 ++-- .../fortios/fortios_wireless_controller_bonjour_profile.py | 4 ++-- .../network/fortios/fortios_wireless_controller_global.py | 4 ++-- ...ortios_wireless_controller_hotspot20_anqp_3gpp_cellular.py | 4 ++-- ...tios_wireless_controller_hotspot20_anqp_ip_address_type.py | 4 ++-- .../fortios_wireless_controller_hotspot20_anqp_nai_realm.py | 4 ++-- ...os_wireless_controller_hotspot20_anqp_network_auth_type.py | 4 ++-- ...s_wireless_controller_hotspot20_anqp_roaming_consortium.py | 4 ++-- .../fortios_wireless_controller_hotspot20_anqp_venue_name.py | 4 ++-- ...tios_wireless_controller_hotspot20_h2qp_conn_capability.py | 4 ++-- ...ortios_wireless_controller_hotspot20_h2qp_operator_name.py | 4 ++-- ...fortios_wireless_controller_hotspot20_h2qp_osu_provider.py | 4 ++-- .../fortios_wireless_controller_hotspot20_h2qp_wan_metric.py | 4 ++-- .../fortios_wireless_controller_hotspot20_hs_profile.py | 4 ++-- .../fortios/fortios_wireless_controller_hotspot20_icon.py | 4 ++-- .../fortios/fortios_wireless_controller_hotspot20_qos_map.py | 4 ++-- .../fortios/fortios_wireless_controller_inter_controller.py | 4 ++-- .../fortios/fortios_wireless_controller_qos_profile.py | 4 ++-- .../network/fortios/fortios_wireless_controller_setting.py | 4 ++-- .../network/fortios/fortios_wireless_controller_timers.py | 4 ++-- .../fortios/fortios_wireless_controller_utm_profile.py | 4 ++-- .../network/fortios/fortios_wireless_controller_vap.py | 4 ++-- .../network/fortios/fortios_wireless_controller_vap_group.py | 4 ++-- .../fortios/fortios_wireless_controller_wids_profile.py | 4 ++-- .../network/fortios/fortios_wireless_controller_wtp.py | 4 ++-- .../network/fortios/fortios_wireless_controller_wtp_group.py | 4 ++-- .../fortios/fortios_wireless_controller_wtp_profile.py | 4 ++-- 422 files changed, 844 insertions(+), 842 deletions(-) create mode 100644 changelogs/fragments/fortios_fix.yml diff --git a/changelogs/fragments/fortios_fix.yml b/changelogs/fragments/fortios_fix.yml new file mode 100644 index 00000000000..1a48593c9c9 --- /dev/null +++ b/changelogs/fragments/fortios_fix.yml @@ -0,0 +1,2 @@ +bugfixes: +- Fix underscore_to_hyphen API in fortios_* modules. diff --git a/lib/ansible/modules/network/fortios/fortios_alertemail_setting.py b/lib/ansible/modules/network/fortios/fortios_alertemail_setting.py index 4ef8771777e..82b7a6e3b8f 100644 --- a/lib/ansible/modules/network/fortios/fortios_alertemail_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_alertemail_setting.py @@ -452,8 +452,8 @@ def filter_alertemail_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_antivirus_heuristic.py b/lib/ansible/modules/network/fortios/fortios_antivirus_heuristic.py index 8a3a212c063..38a899b7d67 100644 --- a/lib/ansible/modules/network/fortios/fortios_antivirus_heuristic.py +++ b/lib/ansible/modules/network/fortios/fortios_antivirus_heuristic.py @@ -202,8 +202,8 @@ def filter_antivirus_heuristic_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_antivirus_profile.py b/lib/ansible/modules/network/fortios/fortios_antivirus_profile.py index 81ce863f00d..b35c0415c0a 100644 --- a/lib/ansible/modules/network/fortios/fortios_antivirus_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_antivirus_profile.py @@ -1041,8 +1041,8 @@ def filter_antivirus_profile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_antivirus_quarantine.py b/lib/ansible/modules/network/fortios/fortios_antivirus_quarantine.py index 7d5047a76c4..ac1e0ffb85e 100644 --- a/lib/ansible/modules/network/fortios/fortios_antivirus_quarantine.py +++ b/lib/ansible/modules/network/fortios/fortios_antivirus_quarantine.py @@ -365,8 +365,8 @@ def filter_antivirus_quarantine_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_antivirus_settings.py b/lib/ansible/modules/network/fortios/fortios_antivirus_settings.py index 7b13de77559..f895ab23ed7 100644 --- a/lib/ansible/modules/network/fortios/fortios_antivirus_settings.py +++ b/lib/ansible/modules/network/fortios/fortios_antivirus_settings.py @@ -216,8 +216,8 @@ def filter_antivirus_settings_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_application_custom.py b/lib/ansible/modules/network/fortios/fortios_application_custom.py index 2e7186fa9c6..116b1f9d3d9 100644 --- a/lib/ansible/modules/network/fortios/fortios_application_custom.py +++ b/lib/ansible/modules/network/fortios/fortios_application_custom.py @@ -270,8 +270,8 @@ def filter_application_custom_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_application_group.py b/lib/ansible/modules/network/fortios/fortios_application_group.py index 78505c4ee2a..1cbf4ec350e 100644 --- a/lib/ansible/modules/network/fortios/fortios_application_group.py +++ b/lib/ansible/modules/network/fortios/fortios_application_group.py @@ -262,8 +262,8 @@ def filter_application_group_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_application_list.py b/lib/ansible/modules/network/fortios/fortios_application_list.py index 69e5ab802ad..ce2dd10619b 100644 --- a/lib/ansible/modules/network/fortios/fortios_application_list.py +++ b/lib/ansible/modules/network/fortios/fortios_application_list.py @@ -521,8 +521,8 @@ def filter_application_list_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_application_name.py b/lib/ansible/modules/network/fortios/fortios_application_name.py index 016d5102e9d..ed872e98fd3 100644 --- a/lib/ansible/modules/network/fortios/fortios_application_name.py +++ b/lib/ansible/modules/network/fortios/fortios_application_name.py @@ -304,8 +304,8 @@ def filter_application_name_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_application_rule_settings.py b/lib/ansible/modules/network/fortios/fortios_application_rule_settings.py index f5b7dcd982c..f81fc044dea 100644 --- a/lib/ansible/modules/network/fortios/fortios_application_rule_settings.py +++ b/lib/ansible/modules/network/fortios/fortios_application_rule_settings.py @@ -222,8 +222,8 @@ def filter_application_rule_settings_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_authentication_rule.py b/lib/ansible/modules/network/fortios/fortios_authentication_rule.py index f27df5ee797..bb0937ecd74 100644 --- a/lib/ansible/modules/network/fortios/fortios_authentication_rule.py +++ b/lib/ansible/modules/network/fortios/fortios_authentication_rule.py @@ -308,8 +308,8 @@ def filter_authentication_rule_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_authentication_scheme.py b/lib/ansible/modules/network/fortios/fortios_authentication_scheme.py index a1ad139d15b..b283a6ab16c 100644 --- a/lib/ansible/modules/network/fortios/fortios_authentication_scheme.py +++ b/lib/ansible/modules/network/fortios/fortios_authentication_scheme.py @@ -296,8 +296,8 @@ def filter_authentication_scheme_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_authentication_setting.py b/lib/ansible/modules/network/fortios/fortios_authentication_setting.py index 4e3bb3d2532..5e91f9e3ed7 100644 --- a/lib/ansible/modules/network/fortios/fortios_authentication_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_authentication_setting.py @@ -238,8 +238,8 @@ def filter_authentication_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_dlp_filepattern.py b/lib/ansible/modules/network/fortios/fortios_dlp_filepattern.py index 110cedcee92..72d2c37a59b 100644 --- a/lib/ansible/modules/network/fortios/fortios_dlp_filepattern.py +++ b/lib/ansible/modules/network/fortios/fortios_dlp_filepattern.py @@ -319,8 +319,8 @@ def filter_dlp_filepattern_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_dlp_fp_doc_source.py b/lib/ansible/modules/network/fortios/fortios_dlp_fp_doc_source.py index e0c9d5a3b9b..960be872438 100644 --- a/lib/ansible/modules/network/fortios/fortios_dlp_fp_doc_source.py +++ b/lib/ansible/modules/network/fortios/fortios_dlp_fp_doc_source.py @@ -344,8 +344,8 @@ def filter_dlp_fp_doc_source_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_dlp_fp_sensitivity.py b/lib/ansible/modules/network/fortios/fortios_dlp_fp_sensitivity.py index 632a9c04feb..563b77c7d43 100644 --- a/lib/ansible/modules/network/fortios/fortios_dlp_fp_sensitivity.py +++ b/lib/ansible/modules/network/fortios/fortios_dlp_fp_sensitivity.py @@ -223,8 +223,8 @@ def filter_dlp_fp_sensitivity_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_dlp_sensor.py b/lib/ansible/modules/network/fortios/fortios_dlp_sensor.py index 2273abb8c1c..a78f6c30037 100644 --- a/lib/ansible/modules/network/fortios/fortios_dlp_sensor.py +++ b/lib/ansible/modules/network/fortios/fortios_dlp_sensor.py @@ -438,8 +438,8 @@ def filter_dlp_sensor_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_dlp_settings.py b/lib/ansible/modules/network/fortios/fortios_dlp_settings.py index 03df27e844e..5c937cb84c8 100644 --- a/lib/ansible/modules/network/fortios/fortios_dlp_settings.py +++ b/lib/ansible/modules/network/fortios/fortios_dlp_settings.py @@ -223,8 +223,8 @@ def filter_dlp_settings_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_dnsfilter_domain_filter.py b/lib/ansible/modules/network/fortios/fortios_dnsfilter_domain_filter.py index 097969a7054..df206175db7 100644 --- a/lib/ansible/modules/network/fortios/fortios_dnsfilter_domain_filter.py +++ b/lib/ansible/modules/network/fortios/fortios_dnsfilter_domain_filter.py @@ -277,8 +277,8 @@ def filter_dnsfilter_domain_filter_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_dnsfilter_profile.py b/lib/ansible/modules/network/fortios/fortios_dnsfilter_profile.py index 9d9fcd7dda1..7bec71695e9 100644 --- a/lib/ansible/modules/network/fortios/fortios_dnsfilter_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_dnsfilter_profile.py @@ -364,8 +364,8 @@ def filter_dnsfilter_profile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_endpoint_control_client.py b/lib/ansible/modules/network/fortios/fortios_endpoint_control_client.py index 63a1ba568f3..e8cf9d374d9 100644 --- a/lib/ansible/modules/network/fortios/fortios_endpoint_control_client.py +++ b/lib/ansible/modules/network/fortios/fortios_endpoint_control_client.py @@ -248,8 +248,8 @@ def filter_endpoint_control_client_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_endpoint_control_forticlient_ems.py b/lib/ansible/modules/network/fortios/fortios_endpoint_control_forticlient_ems.py index f894b5f51fe..526a03a7af8 100644 --- a/lib/ansible/modules/network/fortios/fortios_endpoint_control_forticlient_ems.py +++ b/lib/ansible/modules/network/fortios/fortios_endpoint_control_forticlient_ems.py @@ -276,8 +276,8 @@ def filter_endpoint_control_forticlient_ems_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_endpoint_control_forticlient_registration_sync.py b/lib/ansible/modules/network/fortios/fortios_endpoint_control_forticlient_registration_sync.py index 0293f1b9da8..fcbe4ae04b5 100644 --- a/lib/ansible/modules/network/fortios/fortios_endpoint_control_forticlient_registration_sync.py +++ b/lib/ansible/modules/network/fortios/fortios_endpoint_control_forticlient_registration_sync.py @@ -226,8 +226,8 @@ def filter_endpoint_control_forticlient_registration_sync_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_endpoint_control_profile.py b/lib/ansible/modules/network/fortios/fortios_endpoint_control_profile.py index 990252b6709..2a1b910cbd7 100644 --- a/lib/ansible/modules/network/fortios/fortios_endpoint_control_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_endpoint_control_profile.py @@ -893,8 +893,8 @@ def filter_endpoint_control_profile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_endpoint_control_settings.py b/lib/ansible/modules/network/fortios/fortios_endpoint_control_settings.py index a1c57841678..5f7375c6d8b 100644 --- a/lib/ansible/modules/network/fortios/fortios_endpoint_control_settings.py +++ b/lib/ansible/modules/network/fortios/fortios_endpoint_control_settings.py @@ -282,8 +282,8 @@ def filter_endpoint_control_settings_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_extender_controller_extender.py b/lib/ansible/modules/network/fortios/fortios_extender_controller_extender.py index b1b7b43a791..d2795d2a195 100644 --- a/lib/ansible/modules/network/fortios/fortios_extender_controller_extender.py +++ b/lib/ansible/modules/network/fortios/fortios_extender_controller_extender.py @@ -466,8 +466,8 @@ def filter_extender_controller_extender_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_DoS_policy.py b/lib/ansible/modules/network/fortios/fortios_firewall_DoS_policy.py index b9072ffb73a..71a9fa39e92 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_DoS_policy.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_DoS_policy.py @@ -350,8 +350,8 @@ def filter_firewall_DoS_policy_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_DoS_policy6.py b/lib/ansible/modules/network/fortios/fortios_firewall_DoS_policy6.py index d75a224e0d4..e20f2aa2fe4 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_DoS_policy6.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_DoS_policy6.py @@ -350,8 +350,8 @@ def filter_firewall_DoS_policy6_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_address.py b/lib/ansible/modules/network/fortios/fortios_firewall_address.py index de324298729..a3371a0f76d 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_address.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_address.py @@ -417,8 +417,8 @@ def filter_firewall_address_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_address6.py b/lib/ansible/modules/network/fortios/fortios_firewall_address6.py index ffc42c2eb85..c8bae7ccabb 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_address6.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_address6.py @@ -387,8 +387,8 @@ def filter_firewall_address6_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_address6_template.py b/lib/ansible/modules/network/fortios/fortios_firewall_address6_template.py index e0b022209c0..ca2488f6d7b 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_address6_template.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_address6_template.py @@ -282,8 +282,8 @@ def filter_firewall_address6_template_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_addrgrp.py b/lib/ansible/modules/network/fortios/fortios_firewall_addrgrp.py index 37853792619..ea63a365298 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_addrgrp.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_addrgrp.py @@ -299,8 +299,8 @@ def filter_firewall_addrgrp_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_addrgrp6.py b/lib/ansible/modules/network/fortios/fortios_firewall_addrgrp6.py index e0b09352c78..1eff778c694 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_addrgrp6.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_addrgrp6.py @@ -291,8 +291,8 @@ def filter_firewall_addrgrp6_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_auth_portal.py b/lib/ansible/modules/network/fortios/fortios_firewall_auth_portal.py index c28331769a2..085325f269b 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_auth_portal.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_auth_portal.py @@ -222,8 +222,8 @@ def filter_firewall_auth_portal_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_central_snat_map.py b/lib/ansible/modules/network/fortios/fortios_firewall_central_snat_map.py index 6aaedc010dd..fb44e63ab03 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_central_snat_map.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_central_snat_map.py @@ -326,8 +326,8 @@ def filter_firewall_central_snat_map_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_dnstranslation.py b/lib/ansible/modules/network/fortios/fortios_firewall_dnstranslation.py index b443e764315..5f9c796b77b 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_dnstranslation.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_dnstranslation.py @@ -240,8 +240,8 @@ def filter_firewall_dnstranslation_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_identity_based_route.py b/lib/ansible/modules/network/fortios/fortios_firewall_identity_based_route.py index 60b040ece43..fcdc6c4612f 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_identity_based_route.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_identity_based_route.py @@ -263,8 +263,8 @@ def filter_firewall_identity_based_route_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_interface_policy.py b/lib/ansible/modules/network/fortios/fortios_firewall_interface_policy.py index 0080d55b3ee..433b83c264a 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_interface_policy.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_interface_policy.py @@ -403,8 +403,8 @@ def filter_firewall_interface_policy_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_interface_policy6.py b/lib/ansible/modules/network/fortios/fortios_firewall_interface_policy6.py index 1f7ad5eb3d1..6cdde1d5024 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_interface_policy6.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_interface_policy6.py @@ -403,8 +403,8 @@ def filter_firewall_interface_policy6_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_internet_service.py b/lib/ansible/modules/network/fortios/fortios_firewall_internet_service.py index cc41151a47f..87188c7f13d 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_internet_service.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_internet_service.py @@ -299,8 +299,8 @@ def filter_firewall_internet_service_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_internet_service_custom.py b/lib/ansible/modules/network/fortios/fortios_firewall_internet_service_custom.py index a1f354f6a38..169fcce8e29 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_internet_service_custom.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_internet_service_custom.py @@ -334,8 +334,8 @@ def filter_firewall_internet_service_custom_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_internet_service_group.py b/lib/ansible/modules/network/fortios/fortios_firewall_internet_service_group.py index 7dd01dd9b5d..4081bab9135 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_internet_service_group.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_internet_service_group.py @@ -240,8 +240,8 @@ def filter_firewall_internet_service_group_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_ip_translation.py b/lib/ansible/modules/network/fortios/fortios_firewall_ip_translation.py index 6217f70c68c..79fec1d5fe7 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_ip_translation.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_ip_translation.py @@ -245,8 +245,8 @@ def filter_firewall_ip_translation_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_ipmacbinding_setting.py b/lib/ansible/modules/network/fortios/fortios_firewall_ipmacbinding_setting.py index c8301deb1dc..658d686ad23 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_ipmacbinding_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_ipmacbinding_setting.py @@ -217,8 +217,8 @@ def filter_firewall_ipmacbinding_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_ipmacbinding_table.py b/lib/ansible/modules/network/fortios/fortios_firewall_ipmacbinding_table.py index 38cfd2959ce..5f1a468f31c 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_ipmacbinding_table.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_ipmacbinding_table.py @@ -245,8 +245,8 @@ def filter_firewall_ipmacbinding_table_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_ippool.py b/lib/ansible/modules/network/fortios/fortios_firewall_ippool.py index 9c3f9abadcb..67def2f4d02 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_ippool.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_ippool.py @@ -302,8 +302,8 @@ def filter_firewall_ippool_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_ippool6.py b/lib/ansible/modules/network/fortios/fortios_firewall_ippool6.py index 3c63d40b75f..0dbd9b0413a 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_ippool6.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_ippool6.py @@ -238,8 +238,8 @@ def filter_firewall_ippool6_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_ipv6_eh_filter.py b/lib/ansible/modules/network/fortios/fortios_firewall_ipv6_eh_filter.py index eb9cce88bc7..49631b2851f 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_ipv6_eh_filter.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_ipv6_eh_filter.py @@ -253,8 +253,8 @@ def filter_firewall_ipv6_eh_filter_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_ldb_monitor.py b/lib/ansible/modules/network/fortios/fortios_firewall_ldb_monitor.py index 584e2aaf184..489dca5b06a 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_ldb_monitor.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_ldb_monitor.py @@ -269,8 +269,8 @@ def filter_firewall_ldb_monitor_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_local_in_policy.py b/lib/ansible/modules/network/fortios/fortios_firewall_local_in_policy.py index 4e1561479db..702552be6a6 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_local_in_policy.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_local_in_policy.py @@ -304,8 +304,8 @@ def filter_firewall_local_in_policy_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_local_in_policy6.py b/lib/ansible/modules/network/fortios/fortios_firewall_local_in_policy6.py index 3a8bd8a687b..d5f7207335c 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_local_in_policy6.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_local_in_policy6.py @@ -295,8 +295,8 @@ def filter_firewall_local_in_policy6_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_multicast_address.py b/lib/ansible/modules/network/fortios/fortios_firewall_multicast_address.py index 5abd9a8d80d..6f4056e2b1d 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_multicast_address.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_multicast_address.py @@ -303,8 +303,8 @@ def filter_firewall_multicast_address_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_multicast_address6.py b/lib/ansible/modules/network/fortios/fortios_firewall_multicast_address6.py index b16c81aa4a9..ee9c588c68d 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_multicast_address6.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_multicast_address6.py @@ -277,8 +277,8 @@ def filter_firewall_multicast_address6_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_multicast_policy.py b/lib/ansible/modules/network/fortios/fortios_firewall_multicast_policy.py index 81d70c636d6..fc106c03617 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_multicast_policy.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_multicast_policy.py @@ -319,8 +319,8 @@ def filter_firewall_multicast_policy_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_multicast_policy6.py b/lib/ansible/modules/network/fortios/fortios_firewall_multicast_policy6.py index 486b0780f8c..0a2b09ac863 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_multicast_policy6.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_multicast_policy6.py @@ -300,8 +300,8 @@ def filter_firewall_multicast_policy6_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_policy.py b/lib/ansible/modules/network/fortios/fortios_firewall_policy.py index a8ec3462d87..537acc3015c 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_policy.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_policy.py @@ -1188,8 +1188,8 @@ def filter_firewall_policy_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_policy46.py b/lib/ansible/modules/network/fortios/fortios_firewall_policy46.py index 6d3392a8ba2..f752d5762dd 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_policy46.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_policy46.py @@ -378,8 +378,8 @@ def filter_firewall_policy46_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_policy6.py b/lib/ansible/modules/network/fortios/fortios_firewall_policy6.py index 73add0437dc..c397cd9a731 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_policy6.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_policy6.py @@ -819,8 +819,8 @@ def filter_firewall_policy6_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_policy64.py b/lib/ansible/modules/network/fortios/fortios_firewall_policy64.py index e6c0b0b942a..d003fa3c674 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_policy64.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_policy64.py @@ -378,8 +378,8 @@ def filter_firewall_policy64_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_profile_group.py b/lib/ansible/modules/network/fortios/fortios_firewall_profile_group.py index cd49e02bd27..76c2b070ea8 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_profile_group.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_profile_group.py @@ -291,8 +291,8 @@ def filter_firewall_profile_group_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_profile_protocol_options.py b/lib/ansible/modules/network/fortios/fortios_firewall_profile_protocol_options.py index 825ab88bb65..5937acf8871 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_profile_protocol_options.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_profile_protocol_options.py @@ -820,8 +820,8 @@ def filter_firewall_profile_protocol_options_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_proxy_address.py b/lib/ansible/modules/network/fortios/fortios_firewall_proxy_address.py index 0e3164ceefb..7d82a513040 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_proxy_address.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_proxy_address.py @@ -411,8 +411,8 @@ def filter_firewall_proxy_address_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_proxy_addrgrp.py b/lib/ansible/modules/network/fortios/fortios_firewall_proxy_addrgrp.py index a3323aa74ac..e9fbcf82d0d 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_proxy_addrgrp.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_proxy_addrgrp.py @@ -299,8 +299,8 @@ def filter_firewall_proxy_addrgrp_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_proxy_policy.py b/lib/ansible/modules/network/fortios/fortios_firewall_proxy_policy.py index bb335fefac7..5a921e785c2 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_proxy_policy.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_proxy_policy.py @@ -664,8 +664,8 @@ def filter_firewall_proxy_policy_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_schedule_group.py b/lib/ansible/modules/network/fortios/fortios_firewall_schedule_group.py index 8cf3df4eb92..78175e05ab1 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_schedule_group.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_schedule_group.py @@ -240,8 +240,8 @@ def filter_firewall_schedule_group_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_schedule_onetime.py b/lib/ansible/modules/network/fortios/fortios_firewall_schedule_onetime.py index 4682f8a6b3c..d8f83f6b5dc 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_schedule_onetime.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_schedule_onetime.py @@ -243,8 +243,8 @@ def filter_firewall_schedule_onetime_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_schedule_recurring.py b/lib/ansible/modules/network/fortios/fortios_firewall_schedule_recurring.py index a4d07b214f1..432f4cef0fb 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_schedule_recurring.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_schedule_recurring.py @@ -252,8 +252,8 @@ def filter_firewall_schedule_recurring_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_service_category.py b/lib/ansible/modules/network/fortios/fortios_firewall_service_category.py index 3e33d626b90..91ad30d5dd5 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_service_category.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_service_category.py @@ -227,8 +227,8 @@ def filter_firewall_service_category_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_service_custom.py b/lib/ansible/modules/network/fortios/fortios_firewall_service_custom.py index 89e97953310..b04b9b8df43 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_service_custom.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_service_custom.py @@ -412,8 +412,8 @@ def filter_firewall_service_custom_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_service_group.py b/lib/ansible/modules/network/fortios/fortios_firewall_service_group.py index 6c804f184d3..1e0276e1ff3 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_service_group.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_service_group.py @@ -254,8 +254,8 @@ def filter_firewall_service_group_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_shaper_per_ip_shaper.py b/lib/ansible/modules/network/fortios/fortios_firewall_shaper_per_ip_shaper.py index be30f09d434..290fa59bb18 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_shaper_per_ip_shaper.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_shaper_per_ip_shaper.py @@ -269,8 +269,8 @@ def filter_firewall_shaper_per_ip_shaper_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_shaper_traffic_shaper.py b/lib/ansible/modules/network/fortios/fortios_firewall_shaper_traffic_shaper.py index d525379bd8c..da338ca4ff8 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_shaper_traffic_shaper.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_shaper_traffic_shaper.py @@ -274,8 +274,8 @@ def filter_firewall_shaper_traffic_shaper_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_shaping_policy.py b/lib/ansible/modules/network/fortios/fortios_firewall_shaping_policy.py index 71cecc6c6e6..08f988b3d48 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_shaping_policy.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_shaping_policy.py @@ -487,8 +487,8 @@ def filter_firewall_shaping_policy_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_shaping_profile.py b/lib/ansible/modules/network/fortios/fortios_firewall_shaping_profile.py index 99d9f625b9c..93aca65bf68 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_shaping_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_shaping_profile.py @@ -269,8 +269,8 @@ def filter_firewall_shaping_profile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_sniffer.py b/lib/ansible/modules/network/fortios/fortios_firewall_sniffer.py index 2bf9fac2932..3c20ecd80d5 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_sniffer.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_sniffer.py @@ -465,8 +465,8 @@ def filter_firewall_sniffer_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_ssh_host_key.py b/lib/ansible/modules/network/fortios/fortios_firewall_ssh_host_key.py index 320abe247e1..7f4d1a1d839 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_ssh_host_key.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_ssh_host_key.py @@ -275,8 +275,8 @@ def filter_firewall_ssh_host_key_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_ssh_local_ca.py b/lib/ansible/modules/network/fortios/fortios_firewall_ssh_local_ca.py index 9e7f4b10bbc..36eefd6f018 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_ssh_local_ca.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_ssh_local_ca.py @@ -246,8 +246,8 @@ def filter_firewall_ssh_local_ca_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_ssh_local_key.py b/lib/ansible/modules/network/fortios/fortios_firewall_ssh_local_key.py index fd125b9b655..91af0144c44 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_ssh_local_key.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_ssh_local_key.py @@ -246,8 +246,8 @@ def filter_firewall_ssh_local_key_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_ssh_setting.py b/lib/ansible/modules/network/fortios/fortios_firewall_ssh_setting.py index 3a6f79f55bc..19611161dfe 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_ssh_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_ssh_setting.py @@ -243,8 +243,8 @@ def filter_firewall_ssh_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_ssl_server.py b/lib/ansible/modules/network/fortios/fortios_firewall_ssl_server.py index 6bfe689a21b..8defa1df7d5 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_ssl_server.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_ssl_server.py @@ -324,8 +324,8 @@ def filter_firewall_ssl_server_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_ssl_setting.py b/lib/ansible/modules/network/fortios/fortios_firewall_ssl_setting.py index 836c2c8087c..b4f3f260ca2 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_ssl_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_ssl_setting.py @@ -265,8 +265,8 @@ def filter_firewall_ssl_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_ssl_ssh_profile.py b/lib/ansible/modules/network/fortios/fortios_firewall_ssl_ssh_profile.py index 3f2ac4f04e7..3bd5e02d325 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_ssl_ssh_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_ssl_ssh_profile.py @@ -805,8 +805,8 @@ def filter_firewall_ssl_ssh_profile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_ttl_policy.py b/lib/ansible/modules/network/fortios/fortios_firewall_ttl_policy.py index ec7fd6c31ad..1674411f8fd 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_ttl_policy.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_ttl_policy.py @@ -282,8 +282,8 @@ def filter_firewall_ttl_policy_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_vip.py b/lib/ansible/modules/network/fortios/fortios_firewall_vip.py index c387479211c..1e6e6c5aabd 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_vip.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_vip.py @@ -939,8 +939,8 @@ def filter_firewall_vip_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_vip46.py b/lib/ansible/modules/network/fortios/fortios_firewall_vip46.py index afe09e4287a..e155f6fe042 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_vip46.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_vip46.py @@ -413,8 +413,8 @@ def filter_firewall_vip46_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_vip6.py b/lib/ansible/modules/network/fortios/fortios_firewall_vip6.py index bb301e9cd82..c233355f052 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_vip6.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_vip6.py @@ -849,8 +849,8 @@ def filter_firewall_vip6_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_vip64.py b/lib/ansible/modules/network/fortios/fortios_firewall_vip64.py index 78b82461e0c..3fd1e61273b 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_vip64.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_vip64.py @@ -413,8 +413,8 @@ def filter_firewall_vip64_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_vipgrp.py b/lib/ansible/modules/network/fortios/fortios_firewall_vipgrp.py index 8a5e6188039..70d919403df 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_vipgrp.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_vipgrp.py @@ -256,8 +256,8 @@ def filter_firewall_vipgrp_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_vipgrp46.py b/lib/ansible/modules/network/fortios/fortios_firewall_vipgrp46.py index 5043dbb38d1..7dbb7ea5ee9 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_vipgrp46.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_vipgrp46.py @@ -251,8 +251,8 @@ def filter_firewall_vipgrp46_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_vipgrp6.py b/lib/ansible/modules/network/fortios/fortios_firewall_vipgrp6.py index 762f167fe78..47981466620 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_vipgrp6.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_vipgrp6.py @@ -251,8 +251,8 @@ def filter_firewall_vipgrp6_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_vipgrp64.py b/lib/ansible/modules/network/fortios/fortios_firewall_vipgrp64.py index e9ba5ec1878..09dc4c88eb2 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_vipgrp64.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_vipgrp64.py @@ -251,8 +251,8 @@ def filter_firewall_vipgrp64_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_wildcard_fqdn_custom.py b/lib/ansible/modules/network/fortios/fortios_firewall_wildcard_fqdn_custom.py index ffd13773f93..975ce480540 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_wildcard_fqdn_custom.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_wildcard_fqdn_custom.py @@ -251,8 +251,8 @@ def filter_firewall_wildcard_fqdn_custom_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_firewall_wildcard_fqdn_group.py b/lib/ansible/modules/network/fortios/fortios_firewall_wildcard_fqdn_group.py index bad4b9ebe06..0f34d5cb254 100644 --- a/lib/ansible/modules/network/fortios/fortios_firewall_wildcard_fqdn_group.py +++ b/lib/ansible/modules/network/fortios/fortios_firewall_wildcard_fqdn_group.py @@ -259,8 +259,8 @@ def filter_firewall_wildcard_fqdn_group_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_ftp_proxy_explicit.py b/lib/ansible/modules/network/fortios/fortios_ftp_proxy_explicit.py index fd394d9f442..4d943d40622 100644 --- a/lib/ansible/modules/network/fortios/fortios_ftp_proxy_explicit.py +++ b/lib/ansible/modules/network/fortios/fortios_ftp_proxy_explicit.py @@ -225,8 +225,8 @@ def filter_ftp_proxy_explicit_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_icap_profile.py b/lib/ansible/modules/network/fortios/fortios_icap_profile.py index 250cc4e117c..baf464b924f 100644 --- a/lib/ansible/modules/network/fortios/fortios_icap_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_icap_profile.py @@ -304,8 +304,8 @@ def filter_icap_profile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_icap_server.py b/lib/ansible/modules/network/fortios/fortios_icap_server.py index 999409afb54..45a849c4d3a 100644 --- a/lib/ansible/modules/network/fortios/fortios_icap_server.py +++ b/lib/ansible/modules/network/fortios/fortios_icap_server.py @@ -251,8 +251,8 @@ def filter_icap_server_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_ips_custom.py b/lib/ansible/modules/network/fortios/fortios_ips_custom.py index 376ecdbac35..2bfe751c5e4 100644 --- a/lib/ansible/modules/network/fortios/fortios_ips_custom.py +++ b/lib/ansible/modules/network/fortios/fortios_ips_custom.py @@ -303,8 +303,8 @@ def filter_ips_custom_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_ips_decoder.py b/lib/ansible/modules/network/fortios/fortios_ips_decoder.py index 0f5980bbb4d..15627e97ab9 100644 --- a/lib/ansible/modules/network/fortios/fortios_ips_decoder.py +++ b/lib/ansible/modules/network/fortios/fortios_ips_decoder.py @@ -240,8 +240,8 @@ def filter_ips_decoder_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_ips_global.py b/lib/ansible/modules/network/fortios/fortios_ips_global.py index 43134ff3322..f33231051f3 100644 --- a/lib/ansible/modules/network/fortios/fortios_ips_global.py +++ b/lib/ansible/modules/network/fortios/fortios_ips_global.py @@ -289,8 +289,8 @@ def filter_ips_global_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_ips_rule.py b/lib/ansible/modules/network/fortios/fortios_ips_rule.py index 6c16e95d710..ff5f6f2a01d 100644 --- a/lib/ansible/modules/network/fortios/fortios_ips_rule.py +++ b/lib/ansible/modules/network/fortios/fortios_ips_rule.py @@ -326,8 +326,8 @@ def filter_ips_rule_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_ips_rule_settings.py b/lib/ansible/modules/network/fortios/fortios_ips_rule_settings.py index f703c881bdb..9d47926db80 100644 --- a/lib/ansible/modules/network/fortios/fortios_ips_rule_settings.py +++ b/lib/ansible/modules/network/fortios/fortios_ips_rule_settings.py @@ -222,8 +222,8 @@ def filter_ips_rule_settings_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_ips_sensor.py b/lib/ansible/modules/network/fortios/fortios_ips_sensor.py index 421ccc94b4e..be82d0351ae 100644 --- a/lib/ansible/modules/network/fortios/fortios_ips_sensor.py +++ b/lib/ansible/modules/network/fortios/fortios_ips_sensor.py @@ -604,8 +604,8 @@ def filter_ips_sensor_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_ips_settings.py b/lib/ansible/modules/network/fortios/fortios_ips_settings.py index 2ce33bc2367..3246966c60c 100644 --- a/lib/ansible/modules/network/fortios/fortios_ips_settings.py +++ b/lib/ansible/modules/network/fortios/fortios_ips_settings.py @@ -214,8 +214,8 @@ def filter_ips_settings_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_custom_field.py b/lib/ansible/modules/network/fortios/fortios_log_custom_field.py index 40c68102206..10f5849b852 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_custom_field.py +++ b/lib/ansible/modules/network/fortios/fortios_log_custom_field.py @@ -232,8 +232,8 @@ def filter_log_custom_field_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_disk_filter.py b/lib/ansible/modules/network/fortios/fortios_log_disk_filter.py index 58135f8bda6..5c268054d91 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_disk_filter.py +++ b/lib/ansible/modules/network/fortios/fortios_log_disk_filter.py @@ -465,8 +465,8 @@ def filter_log_disk_filter_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_disk_setting.py b/lib/ansible/modules/network/fortios/fortios_log_disk_setting.py index ee1b9cea672..aa83eac35da 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_disk_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_log_disk_setting.py @@ -394,8 +394,8 @@ def filter_log_disk_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_eventfilter.py b/lib/ansible/modules/network/fortios/fortios_log_eventfilter.py index 2bd47bd361a..d637f459162 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_eventfilter.py +++ b/lib/ansible/modules/network/fortios/fortios_log_eventfilter.py @@ -284,8 +284,8 @@ def filter_log_eventfilter_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer2_filter.py b/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer2_filter.py index 080c3e6404d..c53626385ea 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer2_filter.py +++ b/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer2_filter.py @@ -314,8 +314,8 @@ def filter_log_fortianalyzer2_filter_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer2_setting.py b/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer2_setting.py index c8f723125e7..57b6de8c083 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer2_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer2_setting.py @@ -325,8 +325,8 @@ def filter_log_fortianalyzer2_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer3_filter.py b/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer3_filter.py index c42eed476f9..6bbb04b57e5 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer3_filter.py +++ b/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer3_filter.py @@ -314,8 +314,8 @@ def filter_log_fortianalyzer3_filter_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer3_setting.py b/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer3_setting.py index 3034f9b33f4..f5d972cb875 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer3_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer3_setting.py @@ -325,8 +325,8 @@ def filter_log_fortianalyzer3_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer_filter.py b/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer_filter.py index bd2d99a4d28..6d2c75ad94a 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer_filter.py +++ b/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer_filter.py @@ -314,8 +314,8 @@ def filter_log_fortianalyzer_filter_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer_override_filter.py b/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer_override_filter.py index e8c4620d9cd..41bb8665a6b 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer_override_filter.py +++ b/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer_override_filter.py @@ -314,8 +314,8 @@ def filter_log_fortianalyzer_override_filter_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer_override_setting.py b/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer_override_setting.py index f45035f7d2c..16898929656 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer_override_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer_override_setting.py @@ -341,8 +341,8 @@ def filter_log_fortianalyzer_override_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer_setting.py b/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer_setting.py index e77d8ce496f..052ff59a712 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_log_fortianalyzer_setting.py @@ -325,8 +325,8 @@ def filter_log_fortianalyzer_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_fortiguard_filter.py b/lib/ansible/modules/network/fortios/fortios_log_fortiguard_filter.py index 8f68659c482..0cc28849d50 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_fortiguard_filter.py +++ b/lib/ansible/modules/network/fortios/fortios_log_fortiguard_filter.py @@ -314,8 +314,8 @@ def filter_log_fortiguard_filter_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_fortiguard_override_filter.py b/lib/ansible/modules/network/fortios/fortios_log_fortiguard_override_filter.py index 9a7f6b31282..405de1104c2 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_fortiguard_override_filter.py +++ b/lib/ansible/modules/network/fortios/fortios_log_fortiguard_override_filter.py @@ -314,8 +314,8 @@ def filter_log_fortiguard_override_filter_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_fortiguard_override_setting.py b/lib/ansible/modules/network/fortios/fortios_log_fortiguard_override_setting.py index bf2fee5549a..4c324ec3480 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_fortiguard_override_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_log_fortiguard_override_setting.py @@ -239,8 +239,8 @@ def filter_log_fortiguard_override_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_fortiguard_setting.py b/lib/ansible/modules/network/fortios/fortios_log_fortiguard_setting.py index 886337a0b10..7fb52602129 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_fortiguard_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_log_fortiguard_setting.py @@ -257,8 +257,8 @@ def filter_log_fortiguard_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_gui_display.py b/lib/ansible/modules/network/fortios/fortios_log_gui_display.py index 31ecf5456c1..3c2c181baea 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_gui_display.py +++ b/lib/ansible/modules/network/fortios/fortios_log_gui_display.py @@ -217,8 +217,8 @@ def filter_log_gui_display_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_memory_filter.py b/lib/ansible/modules/network/fortios/fortios_log_memory_filter.py index 2ae1a5195be..63d260db4ca 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_memory_filter.py +++ b/lib/ansible/modules/network/fortios/fortios_log_memory_filter.py @@ -456,8 +456,8 @@ def filter_log_memory_filter_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_memory_global_setting.py b/lib/ansible/modules/network/fortios/fortios_log_memory_global_setting.py index a1c1245e8cb..d8c4e87f259 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_memory_global_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_log_memory_global_setting.py @@ -214,8 +214,8 @@ def filter_log_memory_global_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_memory_setting.py b/lib/ansible/modules/network/fortios/fortios_log_memory_setting.py index 6a634fc21bc..398917ec2d7 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_memory_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_log_memory_setting.py @@ -208,8 +208,8 @@ def filter_log_memory_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_null_device_filter.py b/lib/ansible/modules/network/fortios/fortios_log_null_device_filter.py index 0bf4e1a6185..a540bfa13c8 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_null_device_filter.py +++ b/lib/ansible/modules/network/fortios/fortios_log_null_device_filter.py @@ -306,8 +306,8 @@ def filter_log_null_device_filter_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_null_device_setting.py b/lib/ansible/modules/network/fortios/fortios_log_null_device_setting.py index 3d296a6aa5d..7d5c4df46c7 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_null_device_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_log_null_device_setting.py @@ -201,8 +201,8 @@ def filter_log_null_device_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_setting.py b/lib/ansible/modules/network/fortios/fortios_log_setting.py index 6136f0427fd..8854cbf9812 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_log_setting.py @@ -346,8 +346,8 @@ def filter_log_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_syslogd2_filter.py b/lib/ansible/modules/network/fortios/fortios_log_syslogd2_filter.py index a55f2b20eaf..823394e2b92 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_syslogd2_filter.py +++ b/lib/ansible/modules/network/fortios/fortios_log_syslogd2_filter.py @@ -306,8 +306,8 @@ def filter_log_syslogd2_filter_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_syslogd2_setting.py b/lib/ansible/modules/network/fortios/fortios_log_syslogd2_setting.py index 2e77d05767d..258442ac2f5 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_syslogd2_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_log_syslogd2_setting.py @@ -316,8 +316,8 @@ def filter_log_syslogd2_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_syslogd3_filter.py b/lib/ansible/modules/network/fortios/fortios_log_syslogd3_filter.py index e75fbcb4ee1..9aee4bc8cce 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_syslogd3_filter.py +++ b/lib/ansible/modules/network/fortios/fortios_log_syslogd3_filter.py @@ -306,8 +306,8 @@ def filter_log_syslogd3_filter_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_syslogd3_setting.py b/lib/ansible/modules/network/fortios/fortios_log_syslogd3_setting.py index e19698e144a..7fe5120bfc2 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_syslogd3_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_log_syslogd3_setting.py @@ -316,8 +316,8 @@ def filter_log_syslogd3_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_syslogd4_filter.py b/lib/ansible/modules/network/fortios/fortios_log_syslogd4_filter.py index b7577e27687..88b76dbc397 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_syslogd4_filter.py +++ b/lib/ansible/modules/network/fortios/fortios_log_syslogd4_filter.py @@ -306,8 +306,8 @@ def filter_log_syslogd4_filter_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_syslogd4_setting.py b/lib/ansible/modules/network/fortios/fortios_log_syslogd4_setting.py index 564599a50cf..d3326e3cf74 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_syslogd4_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_log_syslogd4_setting.py @@ -316,8 +316,8 @@ def filter_log_syslogd4_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_syslogd_filter.py b/lib/ansible/modules/network/fortios/fortios_log_syslogd_filter.py index 5c9af71131b..09dce1e73bd 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_syslogd_filter.py +++ b/lib/ansible/modules/network/fortios/fortios_log_syslogd_filter.py @@ -306,8 +306,8 @@ def filter_log_syslogd_filter_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_syslogd_override_filter.py b/lib/ansible/modules/network/fortios/fortios_log_syslogd_override_filter.py index 1e2698c50d1..a31e52deac1 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_syslogd_override_filter.py +++ b/lib/ansible/modules/network/fortios/fortios_log_syslogd_override_filter.py @@ -306,8 +306,8 @@ def filter_log_syslogd_override_filter_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_syslogd_override_setting.py b/lib/ansible/modules/network/fortios/fortios_log_syslogd_override_setting.py index d95243687a1..f775e1439e6 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_syslogd_override_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_log_syslogd_override_setting.py @@ -324,8 +324,8 @@ def filter_log_syslogd_override_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_syslogd_setting.py b/lib/ansible/modules/network/fortios/fortios_log_syslogd_setting.py index 067e29f6467..6c1a475d3f5 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_syslogd_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_log_syslogd_setting.py @@ -316,8 +316,8 @@ def filter_log_syslogd_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_threat_weight.py b/lib/ansible/modules/network/fortios/fortios_log_threat_weight.py index 6b2e30a593d..db47a1276a7 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_threat_weight.py +++ b/lib/ansible/modules/network/fortios/fortios_log_threat_weight.py @@ -538,8 +538,8 @@ def filter_log_threat_weight_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_webtrends_filter.py b/lib/ansible/modules/network/fortios/fortios_log_webtrends_filter.py index b7a0f9d8b37..05bb1257931 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_webtrends_filter.py +++ b/lib/ansible/modules/network/fortios/fortios_log_webtrends_filter.py @@ -306,8 +306,8 @@ def filter_log_webtrends_filter_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_log_webtrends_setting.py b/lib/ansible/modules/network/fortios/fortios_log_webtrends_setting.py index 3097d9730f5..47112297b9f 100644 --- a/lib/ansible/modules/network/fortios/fortios_log_webtrends_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_log_webtrends_setting.py @@ -206,8 +206,8 @@ def filter_log_webtrends_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_report_chart.py b/lib/ansible/modules/network/fortios/fortios_report_chart.py index 5a370073a1d..fec1df27b72 100644 --- a/lib/ansible/modules/network/fortios/fortios_report_chart.py +++ b/lib/ansible/modules/network/fortios/fortios_report_chart.py @@ -637,8 +637,8 @@ def filter_report_chart_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_report_dataset.py b/lib/ansible/modules/network/fortios/fortios_report_dataset.py index 33113e187f3..76e2367fb95 100644 --- a/lib/ansible/modules/network/fortios/fortios_report_dataset.py +++ b/lib/ansible/modules/network/fortios/fortios_report_dataset.py @@ -299,8 +299,8 @@ def filter_report_dataset_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_report_layout.py b/lib/ansible/modules/network/fortios/fortios_report_layout.py index 7fbfd29bf64..0b15ed9fbdd 100644 --- a/lib/ansible/modules/network/fortios/fortios_report_layout.py +++ b/lib/ansible/modules/network/fortios/fortios_report_layout.py @@ -651,8 +651,8 @@ def filter_report_layout_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_report_setting.py b/lib/ansible/modules/network/fortios/fortios_report_setting.py index 57fbf314362..901daf4f9cb 100644 --- a/lib/ansible/modules/network/fortios/fortios_report_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_report_setting.py @@ -229,8 +229,8 @@ def filter_report_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_report_style.py b/lib/ansible/modules/network/fortios/fortios_report_style.py index 5a909d904f2..8b7e651ee93 100644 --- a/lib/ansible/modules/network/fortios/fortios_report_style.py +++ b/lib/ansible/modules/network/fortios/fortios_report_style.py @@ -385,8 +385,8 @@ def filter_report_style_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_report_theme.py b/lib/ansible/modules/network/fortios/fortios_report_theme.py index 55cd1ad3394..4a226c198e6 100644 --- a/lib/ansible/modules/network/fortios/fortios_report_theme.py +++ b/lib/ansible/modules/network/fortios/fortios_report_theme.py @@ -383,8 +383,8 @@ def filter_report_theme_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_access_list.py b/lib/ansible/modules/network/fortios/fortios_router_access_list.py index 8d7a5bc4ef9..bbf8e4d7546 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_access_list.py +++ b/lib/ansible/modules/network/fortios/fortios_router_access_list.py @@ -271,8 +271,8 @@ def filter_router_access_list_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_access_list6.py b/lib/ansible/modules/network/fortios/fortios_router_access_list6.py index fbbfa196038..56b72e70432 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_access_list6.py +++ b/lib/ansible/modules/network/fortios/fortios_router_access_list6.py @@ -251,8 +251,8 @@ def filter_router_access_list6_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_aspath_list.py b/lib/ansible/modules/network/fortios/fortios_router_aspath_list.py index befea7ae7ad..e79a4ed113b 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_aspath_list.py +++ b/lib/ansible/modules/network/fortios/fortios_router_aspath_list.py @@ -233,8 +233,8 @@ def filter_router_aspath_list_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_auth_path.py b/lib/ansible/modules/network/fortios/fortios_router_auth_path.py index 8bb94bbf350..144ab836c9d 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_auth_path.py +++ b/lib/ansible/modules/network/fortios/fortios_router_auth_path.py @@ -232,8 +232,8 @@ def filter_router_auth_path_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_bfd.py b/lib/ansible/modules/network/fortios/fortios_router_bfd.py index c1fce847096..f9eb1e2ba6e 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_bfd.py +++ b/lib/ansible/modules/network/fortios/fortios_router_bfd.py @@ -211,8 +211,8 @@ def filter_router_bfd_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_bfd6.py b/lib/ansible/modules/network/fortios/fortios_router_bfd6.py index b08803f91b6..431246001a0 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_bfd6.py +++ b/lib/ansible/modules/network/fortios/fortios_router_bfd6.py @@ -210,8 +210,8 @@ def filter_router_bfd6_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_bgp.py b/lib/ansible/modules/network/fortios/fortios_router_bgp.py index 9c090de9560..c6ea95f311c 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_bgp.py +++ b/lib/ansible/modules/network/fortios/fortios_router_bgp.py @@ -1862,8 +1862,8 @@ def filter_router_bgp_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_community_list.py b/lib/ansible/modules/network/fortios/fortios_router_community_list.py index cf6704f06a0..b6c08c7e456 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_community_list.py +++ b/lib/ansible/modules/network/fortios/fortios_router_community_list.py @@ -246,8 +246,8 @@ def filter_router_community_list_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_isis.py b/lib/ansible/modules/network/fortios/fortios_router_isis.py index 891f7405738..dadcd871e10 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_isis.py +++ b/lib/ansible/modules/network/fortios/fortios_router_isis.py @@ -810,8 +810,8 @@ def filter_router_isis_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_key_chain.py b/lib/ansible/modules/network/fortios/fortios_router_key_chain.py index f94acd5681d..580f583a615 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_key_chain.py +++ b/lib/ansible/modules/network/fortios/fortios_router_key_chain.py @@ -235,8 +235,8 @@ def filter_router_key_chain_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_multicast.py b/lib/ansible/modules/network/fortios/fortios_router_multicast.py index f9a49c862f4..ac6558694fd 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_multicast.py +++ b/lib/ansible/modules/network/fortios/fortios_router_multicast.py @@ -578,8 +578,8 @@ def filter_router_multicast_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_multicast6.py b/lib/ansible/modules/network/fortios/fortios_router_multicast6.py index 7224d8642e2..4eace3697fe 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_multicast6.py +++ b/lib/ansible/modules/network/fortios/fortios_router_multicast6.py @@ -262,8 +262,8 @@ def filter_router_multicast6_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_multicast_flow.py b/lib/ansible/modules/network/fortios/fortios_router_multicast_flow.py index 2cf961d99d3..ad2a0002b02 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_multicast_flow.py +++ b/lib/ansible/modules/network/fortios/fortios_router_multicast_flow.py @@ -250,8 +250,8 @@ def filter_router_multicast_flow_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_ospf.py b/lib/ansible/modules/network/fortios/fortios_router_ospf.py index 67f01aafe84..f13254c5cb0 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_ospf.py +++ b/lib/ansible/modules/network/fortios/fortios_router_ospf.py @@ -867,8 +867,8 @@ def filter_router_ospf_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_ospf6.py b/lib/ansible/modules/network/fortios/fortios_router_ospf6.py index d06340c5a28..93d317d3661 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_ospf6.py +++ b/lib/ansible/modules/network/fortios/fortios_router_ospf6.py @@ -612,8 +612,8 @@ def filter_router_ospf6_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_policy.py b/lib/ansible/modules/network/fortios/fortios_router_policy.py index 5360c84bdf2..b455a49180f 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_policy.py +++ b/lib/ansible/modules/network/fortios/fortios_router_policy.py @@ -374,8 +374,8 @@ def filter_router_policy_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_policy6.py b/lib/ansible/modules/network/fortios/fortios_router_policy6.py index f1303579dc4..91c8109c042 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_policy6.py +++ b/lib/ansible/modules/network/fortios/fortios_router_policy6.py @@ -288,8 +288,8 @@ def filter_router_policy6_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_prefix_list.py b/lib/ansible/modules/network/fortios/fortios_router_prefix_list.py index 497307f91a6..880e0cd5f19 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_prefix_list.py +++ b/lib/ansible/modules/network/fortios/fortios_router_prefix_list.py @@ -268,8 +268,8 @@ def filter_router_prefix_list_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_prefix_list6.py b/lib/ansible/modules/network/fortios/fortios_router_prefix_list6.py index a7c459fcabf..147e4f1b593 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_prefix_list6.py +++ b/lib/ansible/modules/network/fortios/fortios_router_prefix_list6.py @@ -253,8 +253,8 @@ def filter_router_prefix_list6_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_rip.py b/lib/ansible/modules/network/fortios/fortios_router_rip.py index 89d6376c31b..bd0b2edcc07 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_rip.py +++ b/lib/ansible/modules/network/fortios/fortios_router_rip.py @@ -512,8 +512,8 @@ def filter_router_rip_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_ripng.py b/lib/ansible/modules/network/fortios/fortios_router_ripng.py index be2294b4eb9..bc57bdbfc94 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_ripng.py +++ b/lib/ansible/modules/network/fortios/fortios_router_ripng.py @@ -477,8 +477,8 @@ def filter_router_ripng_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_route_map.py b/lib/ansible/modules/network/fortios/fortios_router_route_map.py index 278457582e7..c2b780ed897 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_route_map.py +++ b/lib/ansible/modules/network/fortios/fortios_router_route_map.py @@ -495,8 +495,8 @@ def filter_router_route_map_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_setting.py b/lib/ansible/modules/network/fortios/fortios_router_setting.py index 41d39e348ca..81032658171 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_router_setting.py @@ -203,8 +203,8 @@ def filter_router_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_static.py b/lib/ansible/modules/network/fortios/fortios_router_static.py index 398b3c33801..47a7553a487 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_static.py +++ b/lib/ansible/modules/network/fortios/fortios_router_static.py @@ -335,8 +335,8 @@ def filter_router_static_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_router_static6.py b/lib/ansible/modules/network/fortios/fortios_router_static6.py index d835f86ea6f..bea1945045e 100644 --- a/lib/ansible/modules/network/fortios/fortios_router_static6.py +++ b/lib/ansible/modules/network/fortios/fortios_router_static6.py @@ -276,8 +276,8 @@ def filter_router_static6_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_spamfilter_bwl.py b/lib/ansible/modules/network/fortios/fortios_spamfilter_bwl.py index d05f0fb2766..b4fc747ab0b 100644 --- a/lib/ansible/modules/network/fortios/fortios_spamfilter_bwl.py +++ b/lib/ansible/modules/network/fortios/fortios_spamfilter_bwl.py @@ -287,8 +287,8 @@ def filter_spamfilter_bwl_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_spamfilter_bword.py b/lib/ansible/modules/network/fortios/fortios_spamfilter_bword.py index 49dc1e74af6..6cb6a843a31 100644 --- a/lib/ansible/modules/network/fortios/fortios_spamfilter_bword.py +++ b/lib/ansible/modules/network/fortios/fortios_spamfilter_bword.py @@ -288,8 +288,8 @@ def filter_spamfilter_bword_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_spamfilter_dnsbl.py b/lib/ansible/modules/network/fortios/fortios_spamfilter_dnsbl.py index 36cd102f054..e1168443baa 100644 --- a/lib/ansible/modules/network/fortios/fortios_spamfilter_dnsbl.py +++ b/lib/ansible/modules/network/fortios/fortios_spamfilter_dnsbl.py @@ -252,8 +252,8 @@ def filter_spamfilter_dnsbl_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_spamfilter_fortishield.py b/lib/ansible/modules/network/fortios/fortios_spamfilter_fortishield.py index d0fe947485c..c8847fbb6de 100644 --- a/lib/ansible/modules/network/fortios/fortios_spamfilter_fortishield.py +++ b/lib/ansible/modules/network/fortios/fortios_spamfilter_fortishield.py @@ -213,8 +213,8 @@ def filter_spamfilter_fortishield_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_spamfilter_iptrust.py b/lib/ansible/modules/network/fortios/fortios_spamfilter_iptrust.py index 4d4d6f5202d..03fdf8b9be5 100644 --- a/lib/ansible/modules/network/fortios/fortios_spamfilter_iptrust.py +++ b/lib/ansible/modules/network/fortios/fortios_spamfilter_iptrust.py @@ -257,8 +257,8 @@ def filter_spamfilter_iptrust_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_spamfilter_mheader.py b/lib/ansible/modules/network/fortios/fortios_spamfilter_mheader.py index 93b909b39ac..920207a9ddb 100644 --- a/lib/ansible/modules/network/fortios/fortios_spamfilter_mheader.py +++ b/lib/ansible/modules/network/fortios/fortios_spamfilter_mheader.py @@ -265,8 +265,8 @@ def filter_spamfilter_mheader_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_spamfilter_options.py b/lib/ansible/modules/network/fortios/fortios_spamfilter_options.py index 9dd5817b33c..ffede03151a 100644 --- a/lib/ansible/modules/network/fortios/fortios_spamfilter_options.py +++ b/lib/ansible/modules/network/fortios/fortios_spamfilter_options.py @@ -197,8 +197,8 @@ def filter_spamfilter_options_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_spamfilter_profile.py b/lib/ansible/modules/network/fortios/fortios_spamfilter_profile.py index 9f499a09dc6..cdcb63e26e5 100644 --- a/lib/ansible/modules/network/fortios/fortios_spamfilter_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_spamfilter_profile.py @@ -530,8 +530,8 @@ def flatten_multilists_attributes(data): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_ssh_filter_profile.py b/lib/ansible/modules/network/fortios/fortios_ssh_filter_profile.py index 062d82dd94d..6562483ddb7 100644 --- a/lib/ansible/modules/network/fortios/fortios_ssh_filter_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_ssh_filter_profile.py @@ -317,8 +317,8 @@ def filter_ssh_filter_profile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_802_1X_settings.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_802_1X_settings.py index ae9564efbe8..d18988026c6 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_802_1X_settings.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_802_1X_settings.py @@ -210,8 +210,8 @@ def filter_switch_controller_802_1X_settings_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_custom_command.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_custom_command.py index 99a34b3c9ae..a34b80a4bc2 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_custom_command.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_custom_command.py @@ -217,8 +217,8 @@ def filter_switch_controller_custom_command_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_global.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_global.py index b19f94485d2..dc9420ec253 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_global.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_global.py @@ -252,8 +252,8 @@ def filter_switch_controller_global_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_igmp_snooping.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_igmp_snooping.py index b6007284a83..c40454d215a 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_igmp_snooping.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_igmp_snooping.py @@ -205,8 +205,8 @@ def filter_switch_controller_igmp_snooping_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_lldp_profile.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_lldp_profile.py index b841731fd21..a6ba560d5cf 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_lldp_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_lldp_profile.py @@ -335,8 +335,8 @@ def filter_switch_controller_lldp_profile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_lldp_settings.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_lldp_settings.py index 0b861193f4e..168b3c50d9d 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_lldp_settings.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_lldp_settings.py @@ -225,8 +225,8 @@ def filter_switch_controller_lldp_settings_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_mac_sync_settings.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_mac_sync_settings.py index 2ad0bd6a206..d8b7b1c5a0c 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_mac_sync_settings.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_mac_sync_settings.py @@ -198,8 +198,8 @@ def filter_switch_controller_mac_sync_settings_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_managed_switch.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_managed_switch.py index 8e75bf496cb..7fc94dc61e3 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_managed_switch.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_managed_switch.py @@ -1091,8 +1091,8 @@ def filter_switch_controller_managed_switch_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_network_monitor_settings.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_network_monitor_settings.py index a7685a37bb5..c4f28d17d53 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_network_monitor_settings.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_network_monitor_settings.py @@ -201,8 +201,8 @@ def filter_switch_controller_network_monitor_settings_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_qos_dot1p_map.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_qos_dot1p_map.py index 5eabd169e9f..cc631fea6cc 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_qos_dot1p_map.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_qos_dot1p_map.py @@ -327,8 +327,8 @@ def filter_switch_controller_qos_dot1p_map_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_qos_ip_dscp_map.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_qos_ip_dscp_map.py index f12c22abfc0..32e45ee9f59 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_qos_ip_dscp_map.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_qos_ip_dscp_map.py @@ -276,8 +276,8 @@ def filter_switch_controller_qos_ip_dscp_map_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_qos_qos_policy.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_qos_qos_policy.py index 5b95235a3e5..c984294b187 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_qos_qos_policy.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_qos_qos_policy.py @@ -228,8 +228,8 @@ def filter_switch_controller_qos_qos_policy_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_qos_queue_policy.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_qos_queue_policy.py index 9fb3df5b4b0..52d7e96e8b9 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_qos_queue_policy.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_qos_queue_policy.py @@ -257,8 +257,8 @@ def filter_switch_controller_qos_queue_policy_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_quarantine.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_quarantine.py index 8ebb51ba69f..366be5eebb5 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_quarantine.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_quarantine.py @@ -236,8 +236,8 @@ def filter_switch_controller_quarantine_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_security_policy_802_1X.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_security_policy_802_1X.py index dda62d68a04..abb53d1020f 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_security_policy_802_1X.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_security_policy_802_1X.py @@ -312,8 +312,8 @@ def filter_switch_controller_security_policy_802_1X_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_security_policy_captive_portal.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_security_policy_captive_portal.py index 0bb1d8b24fc..88da0d5ea87 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_security_policy_captive_portal.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_security_policy_captive_portal.py @@ -219,8 +219,8 @@ def filter_switch_controller_security_policy_captive_portal_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_sflow.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_sflow.py index 6cea0d1bcc0..b17cbfbfa2b 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_sflow.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_sflow.py @@ -202,8 +202,8 @@ def filter_switch_controller_sflow_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_storm_control.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_storm_control.py index 5bfbfa62cb3..dde2bdd2679 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_storm_control.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_storm_control.py @@ -223,8 +223,8 @@ def filter_switch_controller_storm_control_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_stp_settings.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_stp_settings.py index e10a98eef7d..f94be228fc4 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_stp_settings.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_stp_settings.py @@ -237,8 +237,8 @@ def filter_switch_controller_stp_settings_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_switch_group.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_switch_group.py index e660a2930cd..ed9b9d6390c 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_switch_group.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_switch_group.py @@ -225,8 +225,8 @@ def filter_switch_controller_switch_group_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_switch_interface_tag.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_switch_interface_tag.py index 4adba061e59..1f05068647c 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_switch_interface_tag.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_switch_interface_tag.py @@ -207,8 +207,8 @@ def filter_switch_controller_switch_interface_tag_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_switch_log.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_switch_log.py index a3da3b2cf24..b355045848a 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_switch_log.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_switch_log.py @@ -214,8 +214,8 @@ def filter_switch_controller_switch_log_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_switch_profile.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_switch_profile.py index 01afb470966..73028c07fa4 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_switch_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_switch_profile.py @@ -221,8 +221,8 @@ def filter_switch_controller_switch_profile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_system.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_system.py index a0edde4029d..6a94f86e4c5 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_system.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_system.py @@ -205,8 +205,8 @@ def filter_switch_controller_system_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_virtual_port_pool.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_virtual_port_pool.py index 3989327633a..f5b31efd81a 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_virtual_port_pool.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_virtual_port_pool.py @@ -212,8 +212,8 @@ def filter_switch_controller_virtual_port_pool_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_switch_controller_vlan.py b/lib/ansible/modules/network/fortios/fortios_switch_controller_vlan.py index 059fb5e3141..cb44cc9694c 100644 --- a/lib/ansible/modules/network/fortios/fortios_switch_controller_vlan.py +++ b/lib/ansible/modules/network/fortios/fortios_switch_controller_vlan.py @@ -301,8 +301,8 @@ def filter_switch_controller_vlan_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_accprofile.py b/lib/ansible/modules/network/fortios/fortios_system_accprofile.py index c16a83c1982..804c2437bb9 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_accprofile.py +++ b/lib/ansible/modules/network/fortios/fortios_system_accprofile.py @@ -622,8 +622,8 @@ def filter_system_accprofile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_admin.py b/lib/ansible/modules/network/fortios/fortios_system_admin.py index c2055c757cc..35546318f82 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_admin.py +++ b/lib/ansible/modules/network/fortios/fortios_system_admin.py @@ -780,8 +780,8 @@ def filter_system_admin_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_affinity_interrupt.py b/lib/ansible/modules/network/fortios/fortios_system_affinity_interrupt.py index dea62bac634..3d05340c176 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_affinity_interrupt.py +++ b/lib/ansible/modules/network/fortios/fortios_system_affinity_interrupt.py @@ -217,8 +217,8 @@ def filter_system_affinity_interrupt_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_affinity_packet_redistribution.py b/lib/ansible/modules/network/fortios/fortios_system_affinity_packet_redistribution.py index 7383da0c26a..95108b3b2c9 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_affinity_packet_redistribution.py +++ b/lib/ansible/modules/network/fortios/fortios_system_affinity_packet_redistribution.py @@ -223,8 +223,8 @@ def filter_system_affinity_packet_redistribution_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_alarm.py b/lib/ansible/modules/network/fortios/fortios_system_alarm.py index 8dd5ebb8009..1312189af3f 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_alarm.py +++ b/lib/ansible/modules/network/fortios/fortios_system_alarm.py @@ -319,8 +319,8 @@ def filter_system_alarm_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_alias.py b/lib/ansible/modules/network/fortios/fortios_system_alias.py index e60b420807c..a679efe871a 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_alias.py +++ b/lib/ansible/modules/network/fortios/fortios_system_alias.py @@ -212,8 +212,8 @@ def filter_system_alias_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_api_user.py b/lib/ansible/modules/network/fortios/fortios_system_api_user.py index ab0fde13c3c..d578b598f65 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_api_user.py +++ b/lib/ansible/modules/network/fortios/fortios_system_api_user.py @@ -307,8 +307,8 @@ def filter_system_api_user_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_arp_table.py b/lib/ansible/modules/network/fortios/fortios_system_arp_table.py index e026dee738f..78b03355fe6 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_arp_table.py +++ b/lib/ansible/modules/network/fortios/fortios_system_arp_table.py @@ -223,8 +223,8 @@ def filter_system_arp_table_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_auto_install.py b/lib/ansible/modules/network/fortios/fortios_system_auto_install.py index e13bb7aa62e..c71bfc3cf24 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_auto_install.py +++ b/lib/ansible/modules/network/fortios/fortios_system_auto_install.py @@ -219,8 +219,8 @@ def filter_system_auto_install_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_auto_script.py b/lib/ansible/modules/network/fortios/fortios_system_auto_script.py index 1e3880efdb4..a63e73926d2 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_auto_script.py +++ b/lib/ansible/modules/network/fortios/fortios_system_auto_script.py @@ -236,8 +236,8 @@ def filter_system_auto_script_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_automation_action.py b/lib/ansible/modules/network/fortios/fortios_system_automation_action.py index cc909ceceec..9b906d6b41b 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_automation_action.py +++ b/lib/ansible/modules/network/fortios/fortios_system_automation_action.py @@ -339,8 +339,8 @@ def filter_system_automation_action_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_automation_destination.py b/lib/ansible/modules/network/fortios/fortios_system_automation_destination.py index 045d49d363c..e88e8a16359 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_automation_destination.py +++ b/lib/ansible/modules/network/fortios/fortios_system_automation_destination.py @@ -234,8 +234,8 @@ def filter_system_automation_destination_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_automation_stitch.py b/lib/ansible/modules/network/fortios/fortios_system_automation_stitch.py index ce725ef4d8f..5d8b9909e6a 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_automation_stitch.py +++ b/lib/ansible/modules/network/fortios/fortios_system_automation_stitch.py @@ -247,8 +247,8 @@ def filter_system_automation_stitch_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_automation_trigger.py b/lib/ansible/modules/network/fortios/fortios_system_automation_trigger.py index f18f758e29f..2cce1977b92 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_automation_trigger.py +++ b/lib/ansible/modules/network/fortios/fortios_system_automation_trigger.py @@ -298,8 +298,8 @@ def filter_system_automation_trigger_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_autoupdate_push_update.py b/lib/ansible/modules/network/fortios/fortios_system_autoupdate_push_update.py index d2ae48f18d9..48001d7b61e 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_autoupdate_push_update.py +++ b/lib/ansible/modules/network/fortios/fortios_system_autoupdate_push_update.py @@ -219,8 +219,8 @@ def filter_system_autoupdate_push_update_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_autoupdate_schedule.py b/lib/ansible/modules/network/fortios/fortios_system_autoupdate_schedule.py index 9ac74b6115a..8870d221c83 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_autoupdate_schedule.py +++ b/lib/ansible/modules/network/fortios/fortios_system_autoupdate_schedule.py @@ -228,8 +228,8 @@ def filter_system_autoupdate_schedule_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_autoupdate_tunneling.py b/lib/ansible/modules/network/fortios/fortios_system_autoupdate_tunneling.py index 499a80728a3..4f95371f06b 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_autoupdate_tunneling.py +++ b/lib/ansible/modules/network/fortios/fortios_system_autoupdate_tunneling.py @@ -221,8 +221,8 @@ def filter_system_autoupdate_tunneling_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_central_management.py b/lib/ansible/modules/network/fortios/fortios_system_central_management.py index 712a892f02a..d7faff31c08 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_central_management.py +++ b/lib/ansible/modules/network/fortios/fortios_system_central_management.py @@ -351,8 +351,8 @@ def filter_system_central_management_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_cluster_sync.py b/lib/ansible/modules/network/fortios/fortios_system_cluster_sync.py index 9a1bd865310..aea156e8817 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_cluster_sync.py +++ b/lib/ansible/modules/network/fortios/fortios_system_cluster_sync.py @@ -329,8 +329,8 @@ def filter_system_cluster_sync_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_console.py b/lib/ansible/modules/network/fortios/fortios_system_console.py index 408621c212f..62b92e66d57 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_console.py +++ b/lib/ansible/modules/network/fortios/fortios_system_console.py @@ -228,8 +228,8 @@ def filter_system_console_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_csf.py b/lib/ansible/modules/network/fortios/fortios_system_csf.py index a35637d76d1..414a89ec7ee 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_csf.py +++ b/lib/ansible/modules/network/fortios/fortios_system_csf.py @@ -315,8 +315,8 @@ def filter_system_csf_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_custom_language.py b/lib/ansible/modules/network/fortios/fortios_system_custom_language.py index ad58e8f2c78..de454f88788 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_custom_language.py +++ b/lib/ansible/modules/network/fortios/fortios_system_custom_language.py @@ -217,8 +217,8 @@ def filter_system_custom_language_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_ddns.py b/lib/ansible/modules/network/fortios/fortios_system_ddns.py index eb8665e592f..4464e12a02b 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_ddns.py +++ b/lib/ansible/modules/network/fortios/fortios_system_ddns.py @@ -325,8 +325,8 @@ def filter_system_ddns_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_dedicated_mgmt.py b/lib/ansible/modules/network/fortios/fortios_system_dedicated_mgmt.py index 736a0f618a1..224a7f3cb10 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_dedicated_mgmt.py +++ b/lib/ansible/modules/network/fortios/fortios_system_dedicated_mgmt.py @@ -235,8 +235,8 @@ def filter_system_dedicated_mgmt_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_dhcp6_server.py b/lib/ansible/modules/network/fortios/fortios_system_dhcp6_server.py index b63c932ce7c..ac44d45ca78 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_dhcp6_server.py +++ b/lib/ansible/modules/network/fortios/fortios_system_dhcp6_server.py @@ -360,8 +360,8 @@ def filter_system_dhcp6_server_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_dhcp_server.py b/lib/ansible/modules/network/fortios/fortios_system_dhcp_server.py index f5152944cd0..ac6c0eb9abe 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_dhcp_server.py +++ b/lib/ansible/modules/network/fortios/fortios_system_dhcp_server.py @@ -708,8 +708,8 @@ def filter_system_dhcp_server_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_dns.py b/lib/ansible/modules/network/fortios/fortios_system_dns.py index 0c36b96e1e9..e7b0984c152 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_dns.py +++ b/lib/ansible/modules/network/fortios/fortios_system_dns.py @@ -262,8 +262,8 @@ def filter_system_dns_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_dns_database.py b/lib/ansible/modules/network/fortios/fortios_system_dns_database.py index 290f8bf33ba..3166ad1eb0b 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_dns_database.py +++ b/lib/ansible/modules/network/fortios/fortios_system_dns_database.py @@ -349,8 +349,8 @@ def filter_system_dns_database_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_dns_server.py b/lib/ansible/modules/network/fortios/fortios_system_dns_server.py index 1919519d5ff..fec29cb6469 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_dns_server.py +++ b/lib/ansible/modules/network/fortios/fortios_system_dns_server.py @@ -221,8 +221,8 @@ def filter_system_dns_server_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_dscp_based_priority.py b/lib/ansible/modules/network/fortios/fortios_system_dscp_based_priority.py index f2b73c9b56d..98e109571e7 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_dscp_based_priority.py +++ b/lib/ansible/modules/network/fortios/fortios_system_dscp_based_priority.py @@ -221,8 +221,8 @@ def filter_system_dscp_based_priority_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_email_server.py b/lib/ansible/modules/network/fortios/fortios_system_email_server.py index 8944928b96b..078aebd5dbe 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_email_server.py +++ b/lib/ansible/modules/network/fortios/fortios_system_email_server.py @@ -276,8 +276,8 @@ def filter_system_email_server_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_external_resource.py b/lib/ansible/modules/network/fortios/fortios_system_external_resource.py index 59e4d8b6ae4..d37b984b4f8 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_external_resource.py +++ b/lib/ansible/modules/network/fortios/fortios_system_external_resource.py @@ -246,8 +246,8 @@ def filter_system_external_resource_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_fips_cc.py b/lib/ansible/modules/network/fortios/fortios_system_fips_cc.py index 891e8447004..816138bc045 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_fips_cc.py +++ b/lib/ansible/modules/network/fortios/fortios_system_fips_cc.py @@ -214,8 +214,8 @@ def filter_system_fips_cc_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_fm.py b/lib/ansible/modules/network/fortios/fortios_system_fm.py index 178b065db37..78c57064726 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_fm.py +++ b/lib/ansible/modules/network/fortios/fortios_system_fm.py @@ -241,8 +241,8 @@ def filter_system_fm_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_fortiguard.py b/lib/ansible/modules/network/fortios/fortios_system_fortiguard.py index fa3ec9fd375..6bfb1115d5f 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_fortiguard.py +++ b/lib/ansible/modules/network/fortios/fortios_system_fortiguard.py @@ -386,8 +386,8 @@ def filter_system_fortiguard_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_fortimanager.py b/lib/ansible/modules/network/fortios/fortios_system_fortimanager.py index e936b41fb3a..b7065af7ec6 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_fortimanager.py +++ b/lib/ansible/modules/network/fortios/fortios_system_fortimanager.py @@ -244,8 +244,8 @@ def filter_system_fortimanager_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_fortisandbox.py b/lib/ansible/modules/network/fortios/fortios_system_fortisandbox.py index 45bcccc3a12..c066635e61b 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_fortisandbox.py +++ b/lib/ansible/modules/network/fortios/fortios_system_fortisandbox.py @@ -236,8 +236,8 @@ def filter_system_fortisandbox_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_fsso_polling.py b/lib/ansible/modules/network/fortios/fortios_system_fsso_polling.py index ec6af242a98..aff4049eaa9 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_fsso_polling.py +++ b/lib/ansible/modules/network/fortios/fortios_system_fsso_polling.py @@ -219,8 +219,8 @@ def filter_system_fsso_polling_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_ftm_push.py b/lib/ansible/modules/network/fortios/fortios_system_ftm_push.py index d371e8216f0..fffb56bb57a 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_ftm_push.py +++ b/lib/ansible/modules/network/fortios/fortios_system_ftm_push.py @@ -210,8 +210,8 @@ def filter_system_ftm_push_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_geoip_override.py b/lib/ansible/modules/network/fortios/fortios_system_geoip_override.py index c0cce6aeeca..7a1784e2b64 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_geoip_override.py +++ b/lib/ansible/modules/network/fortios/fortios_system_geoip_override.py @@ -241,8 +241,8 @@ def filter_system_geoip_override_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_global.py b/lib/ansible/modules/network/fortios/fortios_system_global.py index 93821ecb759..fe485d4577b 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_global.py +++ b/lib/ansible/modules/network/fortios/fortios_system_global.py @@ -1603,8 +1603,8 @@ def flatten_multilists_attributes(data): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_gre_tunnel.py b/lib/ansible/modules/network/fortios/fortios_system_gre_tunnel.py index c7c0eb396a8..7aeb44992d3 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_gre_tunnel.py +++ b/lib/ansible/modules/network/fortios/fortios_system_gre_tunnel.py @@ -305,8 +305,8 @@ def filter_system_gre_tunnel_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_ha.py b/lib/ansible/modules/network/fortios/fortios_system_ha.py index d7559e79a82..4f34290f1ad 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_ha.py +++ b/lib/ansible/modules/network/fortios/fortios_system_ha.py @@ -700,8 +700,8 @@ def filter_system_ha_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_ha_monitor.py b/lib/ansible/modules/network/fortios/fortios_system_ha_monitor.py index 735be13909d..c1b0eea33fe 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_ha_monitor.py +++ b/lib/ansible/modules/network/fortios/fortios_system_ha_monitor.py @@ -210,8 +210,8 @@ def filter_system_ha_monitor_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_interface.py b/lib/ansible/modules/network/fortios/fortios_system_interface.py index 306adc90070..210824df2b2 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_interface.py +++ b/lib/ansible/modules/network/fortios/fortios_system_interface.py @@ -2042,8 +2042,8 @@ def flatten_multilists_attributes(data): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_ipip_tunnel.py b/lib/ansible/modules/network/fortios/fortios_system_ipip_tunnel.py index 7a3246a5051..15661d406b3 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_ipip_tunnel.py +++ b/lib/ansible/modules/network/fortios/fortios_system_ipip_tunnel.py @@ -223,8 +223,8 @@ def filter_system_ipip_tunnel_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_ips_urlfilter_dns.py b/lib/ansible/modules/network/fortios/fortios_system_ips_urlfilter_dns.py index a6fcbbfe9f0..4b31bd9f5dd 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_ips_urlfilter_dns.py +++ b/lib/ansible/modules/network/fortios/fortios_system_ips_urlfilter_dns.py @@ -223,8 +223,8 @@ def filter_system_ips_urlfilter_dns_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_ips_urlfilter_dns6.py b/lib/ansible/modules/network/fortios/fortios_system_ips_urlfilter_dns6.py index 75e70dad3d9..5038eceebef 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_ips_urlfilter_dns6.py +++ b/lib/ansible/modules/network/fortios/fortios_system_ips_urlfilter_dns6.py @@ -215,8 +215,8 @@ def filter_system_ips_urlfilter_dns6_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_ipv6_neighbor_cache.py b/lib/ansible/modules/network/fortios/fortios_system_ipv6_neighbor_cache.py index 89d463b0353..d6690cfa604 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_ipv6_neighbor_cache.py +++ b/lib/ansible/modules/network/fortios/fortios_system_ipv6_neighbor_cache.py @@ -223,8 +223,8 @@ def filter_system_ipv6_neighbor_cache_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_ipv6_tunnel.py b/lib/ansible/modules/network/fortios/fortios_system_ipv6_tunnel.py index 75475375bc4..7cab86f06a4 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_ipv6_tunnel.py +++ b/lib/ansible/modules/network/fortios/fortios_system_ipv6_tunnel.py @@ -223,8 +223,8 @@ def filter_system_ipv6_tunnel_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_link_monitor.py b/lib/ansible/modules/network/fortios/fortios_system_link_monitor.py index 6536163dea7..22dca6dcbc3 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_link_monitor.py +++ b/lib/ansible/modules/network/fortios/fortios_system_link_monitor.py @@ -354,8 +354,8 @@ def filter_system_link_monitor_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_mac_address_table.py b/lib/ansible/modules/network/fortios/fortios_system_mac_address_table.py index 20d67e1c52f..698d545c7e6 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_mac_address_table.py +++ b/lib/ansible/modules/network/fortios/fortios_system_mac_address_table.py @@ -217,8 +217,8 @@ def filter_system_mac_address_table_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_management_tunnel.py b/lib/ansible/modules/network/fortios/fortios_system_management_tunnel.py index 5619c0ed87c..66129f7e677 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_management_tunnel.py +++ b/lib/ansible/modules/network/fortios/fortios_system_management_tunnel.py @@ -247,8 +247,8 @@ def filter_system_management_tunnel_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_mobile_tunnel.py b/lib/ansible/modules/network/fortios/fortios_system_mobile_tunnel.py index cafeda5b164..57dbead6d40 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_mobile_tunnel.py +++ b/lib/ansible/modules/network/fortios/fortios_system_mobile_tunnel.py @@ -310,8 +310,8 @@ def filter_system_mobile_tunnel_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_nat64.py b/lib/ansible/modules/network/fortios/fortios_system_nat64.py index df37c6565b5..51d1551964f 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_nat64.py +++ b/lib/ansible/modules/network/fortios/fortios_system_nat64.py @@ -257,8 +257,8 @@ def filter_system_nat64_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_nd_proxy.py b/lib/ansible/modules/network/fortios/fortios_system_nd_proxy.py index 09799bf5ae4..3d37445534c 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_nd_proxy.py +++ b/lib/ansible/modules/network/fortios/fortios_system_nd_proxy.py @@ -212,8 +212,8 @@ def filter_system_nd_proxy_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_netflow.py b/lib/ansible/modules/network/fortios/fortios_system_netflow.py index 0600f291fa7..f1aa8d66540 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_netflow.py +++ b/lib/ansible/modules/network/fortios/fortios_system_netflow.py @@ -229,8 +229,8 @@ def filter_system_netflow_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_network_visibility.py b/lib/ansible/modules/network/fortios/fortios_system_network_visibility.py index 52f841dcf15..1ce46d907ed 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_network_visibility.py +++ b/lib/ansible/modules/network/fortios/fortios_system_network_visibility.py @@ -235,8 +235,8 @@ def filter_system_network_visibility_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_ntp.py b/lib/ansible/modules/network/fortios/fortios_system_ntp.py index 000bcbfe297..014c2a153b7 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_ntp.py +++ b/lib/ansible/modules/network/fortios/fortios_system_ntp.py @@ -290,8 +290,8 @@ def filter_system_ntp_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_object_tagging.py b/lib/ansible/modules/network/fortios/fortios_system_object_tagging.py index 966d78678f8..5d96911dfdc 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_object_tagging.py +++ b/lib/ansible/modules/network/fortios/fortios_system_object_tagging.py @@ -262,8 +262,8 @@ def filter_system_object_tagging_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_password_policy.py b/lib/ansible/modules/network/fortios/fortios_system_password_policy.py index 3108242b07c..364e1cc0d77 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_password_policy.py +++ b/lib/ansible/modules/network/fortios/fortios_system_password_policy.py @@ -265,8 +265,8 @@ def filter_system_password_policy_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_password_policy_guest_admin.py b/lib/ansible/modules/network/fortios/fortios_system_password_policy_guest_admin.py index bf526ada9fe..ff31c6f2783 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_password_policy_guest_admin.py +++ b/lib/ansible/modules/network/fortios/fortios_system_password_policy_guest_admin.py @@ -264,8 +264,8 @@ def filter_system_password_policy_guest_admin_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_pppoe_interface.py b/lib/ansible/modules/network/fortios/fortios_system_pppoe_interface.py index 38f612d5fa4..541b8865be8 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_pppoe_interface.py +++ b/lib/ansible/modules/network/fortios/fortios_system_pppoe_interface.py @@ -302,8 +302,8 @@ def filter_system_pppoe_interface_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_probe_response.py b/lib/ansible/modules/network/fortios/fortios_system_probe_response.py index cea8d3730ac..88a9bfb0a09 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_probe_response.py +++ b/lib/ansible/modules/network/fortios/fortios_system_probe_response.py @@ -240,8 +240,8 @@ def filter_system_probe_response_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_proxy_arp.py b/lib/ansible/modules/network/fortios/fortios_system_proxy_arp.py index 844e563ef0b..bda454c8519 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_proxy_arp.py +++ b/lib/ansible/modules/network/fortios/fortios_system_proxy_arp.py @@ -223,8 +223,8 @@ def filter_system_proxy_arp_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_admin.py b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_admin.py index 9752158b61d..3c65d29e0ee 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_admin.py +++ b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_admin.py @@ -231,8 +231,8 @@ def filter_system_replacemsg_admin_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_alertmail.py b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_alertmail.py index 628d7980b6e..9e901028cf6 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_alertmail.py +++ b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_alertmail.py @@ -231,8 +231,8 @@ def filter_system_replacemsg_alertmail_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_auth.py b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_auth.py index 4ba65c8df51..3ca811e6e99 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_auth.py +++ b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_auth.py @@ -231,8 +231,8 @@ def filter_system_replacemsg_auth_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_device_detection_portal.py b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_device_detection_portal.py index 9824c8a7a94..2acd9eb1ad8 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_device_detection_portal.py +++ b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_device_detection_portal.py @@ -231,8 +231,8 @@ def filter_system_replacemsg_device_detection_portal_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_ec.py b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_ec.py index d503dd6dc64..adddbbc4258 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_ec.py +++ b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_ec.py @@ -231,8 +231,8 @@ def filter_system_replacemsg_ec_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_fortiguard_wf.py b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_fortiguard_wf.py index c19709cf43b..fbb6619e35d 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_fortiguard_wf.py +++ b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_fortiguard_wf.py @@ -231,8 +231,8 @@ def filter_system_replacemsg_fortiguard_wf_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_ftp.py b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_ftp.py index 41b0fe8960e..7f1148312a4 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_ftp.py +++ b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_ftp.py @@ -231,8 +231,8 @@ def filter_system_replacemsg_ftp_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_group.py b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_group.py index d4bed83c424..92707f5f436 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_group.py +++ b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_group.py @@ -876,8 +876,8 @@ def filter_system_replacemsg_group_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_http.py b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_http.py index 01b011754b5..f073eca92bf 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_http.py +++ b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_http.py @@ -231,8 +231,8 @@ def filter_system_replacemsg_http_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_icap.py b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_icap.py index ccd0bd7d247..56aee82977f 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_icap.py +++ b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_icap.py @@ -231,8 +231,8 @@ def filter_system_replacemsg_icap_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_image.py b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_image.py index d55dc570707..6e852bf14e9 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_image.py +++ b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_image.py @@ -222,8 +222,8 @@ def filter_system_replacemsg_image_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_mail.py b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_mail.py index 92cc39f36d0..123bfb8e52d 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_mail.py +++ b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_mail.py @@ -231,8 +231,8 @@ def filter_system_replacemsg_mail_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_nac_quar.py b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_nac_quar.py index 2bb44f3234b..ac89baaf6ae 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_nac_quar.py +++ b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_nac_quar.py @@ -231,8 +231,8 @@ def filter_system_replacemsg_nac_quar_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_nntp.py b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_nntp.py index 67888f8a395..03a94b78479 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_nntp.py +++ b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_nntp.py @@ -231,8 +231,8 @@ def filter_system_replacemsg_nntp_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_spam.py b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_spam.py index e792479af3c..a8f8ebdbe0b 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_spam.py +++ b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_spam.py @@ -231,8 +231,8 @@ def filter_system_replacemsg_spam_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_sslvpn.py b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_sslvpn.py index 3cb230efffa..34cf273da59 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_sslvpn.py +++ b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_sslvpn.py @@ -231,8 +231,8 @@ def filter_system_replacemsg_sslvpn_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_traffic_quota.py b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_traffic_quota.py index ab4041ee994..90449e8dd7e 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_traffic_quota.py +++ b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_traffic_quota.py @@ -231,8 +231,8 @@ def filter_system_replacemsg_traffic_quota_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_utm.py b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_utm.py index a6e6686f232..8c3de90bf52 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_utm.py +++ b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_utm.py @@ -231,8 +231,8 @@ def filter_system_replacemsg_utm_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_webproxy.py b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_webproxy.py index 53abc68b91e..63f9f744ba9 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_replacemsg_webproxy.py +++ b/lib/ansible/modules/network/fortios/fortios_system_replacemsg_webproxy.py @@ -231,8 +231,8 @@ def filter_system_replacemsg_webproxy_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_resource_limits.py b/lib/ansible/modules/network/fortios/fortios_system_resource_limits.py index 4a01d37056c..e369e7ecd13 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_resource_limits.py +++ b/lib/ansible/modules/network/fortios/fortios_system_resource_limits.py @@ -287,8 +287,8 @@ def filter_system_resource_limits_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_sdn_connector.py b/lib/ansible/modules/network/fortios/fortios_system_sdn_connector.py index 9a6f0fb45fd..a67bcfbb5c3 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_sdn_connector.py +++ b/lib/ansible/modules/network/fortios/fortios_system_sdn_connector.py @@ -492,8 +492,8 @@ def filter_system_sdn_connector_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_session_helper.py b/lib/ansible/modules/network/fortios/fortios_system_session_helper.py index aacc21d568a..dc53547e6c0 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_session_helper.py +++ b/lib/ansible/modules/network/fortios/fortios_system_session_helper.py @@ -242,8 +242,8 @@ def filter_system_session_helper_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_session_ttl.py b/lib/ansible/modules/network/fortios/fortios_system_session_ttl.py index 6dae9a287dc..0da01409184 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_session_ttl.py +++ b/lib/ansible/modules/network/fortios/fortios_system_session_ttl.py @@ -230,8 +230,8 @@ def filter_system_session_ttl_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_settings.py b/lib/ansible/modules/network/fortios/fortios_system_settings.py index 4c26c149b87..07280e10fff 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_settings.py +++ b/lib/ansible/modules/network/fortios/fortios_system_settings.py @@ -1072,8 +1072,8 @@ def filter_system_settings_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_sflow.py b/lib/ansible/modules/network/fortios/fortios_system_sflow.py index 8f1c22456a8..55ada439ede 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_sflow.py +++ b/lib/ansible/modules/network/fortios/fortios_system_sflow.py @@ -208,8 +208,8 @@ def filter_system_sflow_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_sit_tunnel.py b/lib/ansible/modules/network/fortios/fortios_system_sit_tunnel.py index 72e1875ec4b..cc0b307161b 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_sit_tunnel.py +++ b/lib/ansible/modules/network/fortios/fortios_system_sit_tunnel.py @@ -228,8 +228,8 @@ def filter_system_sit_tunnel_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_sms_server.py b/lib/ansible/modules/network/fortios/fortios_system_sms_server.py index c41c9ad59c0..f2c3ed9a322 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_sms_server.py +++ b/lib/ansible/modules/network/fortios/fortios_system_sms_server.py @@ -212,8 +212,8 @@ def filter_system_sms_server_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_snmp_community.py b/lib/ansible/modules/network/fortios/fortios_system_snmp_community.py index 2cff630f2d7..8280259d4d4 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_snmp_community.py +++ b/lib/ansible/modules/network/fortios/fortios_system_snmp_community.py @@ -408,8 +408,8 @@ def filter_system_snmp_community_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_snmp_sysinfo.py b/lib/ansible/modules/network/fortios/fortios_system_snmp_sysinfo.py index b103c393225..b98e90dbe3e 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_snmp_sysinfo.py +++ b/lib/ansible/modules/network/fortios/fortios_system_snmp_sysinfo.py @@ -237,8 +237,8 @@ def filter_system_snmp_sysinfo_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_snmp_user.py b/lib/ansible/modules/network/fortios/fortios_system_snmp_user.py index 540d351c416..afe0c74b2df 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_snmp_user.py +++ b/lib/ansible/modules/network/fortios/fortios_system_snmp_user.py @@ -372,8 +372,8 @@ def flatten_multilists_attributes(data): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_storage.py b/lib/ansible/modules/network/fortios/fortios_system_storage.py index 25aa9d8bc4b..b0a3083e196 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_storage.py +++ b/lib/ansible/modules/network/fortios/fortios_system_storage.py @@ -263,8 +263,8 @@ def filter_system_storage_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_switch_interface.py b/lib/ansible/modules/network/fortios/fortios_system_switch_interface.py index bd857f0b5dc..b2720ee40bb 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_switch_interface.py +++ b/lib/ansible/modules/network/fortios/fortios_system_switch_interface.py @@ -276,8 +276,8 @@ def filter_system_switch_interface_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_tos_based_priority.py b/lib/ansible/modules/network/fortios/fortios_system_tos_based_priority.py index e5496395dd6..2c48dc56ebb 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_tos_based_priority.py +++ b/lib/ansible/modules/network/fortios/fortios_system_tos_based_priority.py @@ -222,8 +222,8 @@ def filter_system_tos_based_priority_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_vdom.py b/lib/ansible/modules/network/fortios/fortios_system_vdom.py index 87b2784a633..cc7e2fca8ba 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_vdom.py +++ b/lib/ansible/modules/network/fortios/fortios_system_vdom.py @@ -238,8 +238,8 @@ def filter_system_vdom_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_vdom_dns.py b/lib/ansible/modules/network/fortios/fortios_system_vdom_dns.py index 1d36d828c9e..35f54ed55d0 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_vdom_dns.py +++ b/lib/ansible/modules/network/fortios/fortios_system_vdom_dns.py @@ -226,8 +226,8 @@ def filter_system_vdom_dns_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_vdom_exception.py b/lib/ansible/modules/network/fortios/fortios_system_vdom_exception.py index 7bc3312a4fb..8c199b62006 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_vdom_exception.py +++ b/lib/ansible/modules/network/fortios/fortios_system_vdom_exception.py @@ -244,8 +244,8 @@ def filter_system_vdom_exception_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_vdom_link.py b/lib/ansible/modules/network/fortios/fortios_system_vdom_link.py index 7bfe88c4356..e23c33b5bb0 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_vdom_link.py +++ b/lib/ansible/modules/network/fortios/fortios_system_vdom_link.py @@ -223,8 +223,8 @@ def filter_system_vdom_link_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_vdom_netflow.py b/lib/ansible/modules/network/fortios/fortios_system_vdom_netflow.py index 928b745621d..1f48108c53a 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_vdom_netflow.py +++ b/lib/ansible/modules/network/fortios/fortios_system_vdom_netflow.py @@ -216,8 +216,8 @@ def filter_system_vdom_netflow_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_vdom_property.py b/lib/ansible/modules/network/fortios/fortios_system_vdom_property.py index ebff9baa1b6..ba964acc12f 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_vdom_property.py +++ b/lib/ansible/modules/network/fortios/fortios_system_vdom_property.py @@ -313,8 +313,8 @@ def filter_system_vdom_property_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_vdom_radius_server.py b/lib/ansible/modules/network/fortios/fortios_system_vdom_radius_server.py index 5c41249d438..ce7ba915863 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_vdom_radius_server.py +++ b/lib/ansible/modules/network/fortios/fortios_system_vdom_radius_server.py @@ -220,8 +220,8 @@ def filter_system_vdom_radius_server_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_vdom_sflow.py b/lib/ansible/modules/network/fortios/fortios_system_vdom_sflow.py index 860e261a769..466efd461c6 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_vdom_sflow.py +++ b/lib/ansible/modules/network/fortios/fortios_system_vdom_sflow.py @@ -220,8 +220,8 @@ def filter_system_vdom_sflow_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_virtual_wan_link.py b/lib/ansible/modules/network/fortios/fortios_system_virtual_wan_link.py index 6a3b1a32621..20fb1ec5bdb 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_virtual_wan_link.py +++ b/lib/ansible/modules/network/fortios/fortios_system_virtual_wan_link.py @@ -897,8 +897,8 @@ def filter_system_virtual_wan_link_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_virtual_wire_pair.py b/lib/ansible/modules/network/fortios/fortios_system_virtual_wire_pair.py index 43c647474fd..ce20cd0d982 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_virtual_wire_pair.py +++ b/lib/ansible/modules/network/fortios/fortios_system_virtual_wire_pair.py @@ -233,8 +233,8 @@ def filter_system_virtual_wire_pair_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_vxlan.py b/lib/ansible/modules/network/fortios/fortios_system_vxlan.py index 9e81f01caca..b59caa34be5 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_vxlan.py +++ b/lib/ansible/modules/network/fortios/fortios_system_vxlan.py @@ -265,8 +265,8 @@ def filter_system_vxlan_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_wccp.py b/lib/ansible/modules/network/fortios/fortios_system_wccp.py index c4d5213d9b6..6f506f5ca73 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_wccp.py +++ b/lib/ansible/modules/network/fortios/fortios_system_wccp.py @@ -359,8 +359,8 @@ def filter_system_wccp_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_system_zone.py b/lib/ansible/modules/network/fortios/fortios_system_zone.py index f2c1432fe4f..e1d2f59271c 100644 --- a/lib/ansible/modules/network/fortios/fortios_system_zone.py +++ b/lib/ansible/modules/network/fortios/fortios_system_zone.py @@ -262,8 +262,8 @@ def filter_system_zone_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_adgrp.py b/lib/ansible/modules/network/fortios/fortios_user_adgrp.py index 7bc281d5088..e8bd6847492 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_adgrp.py +++ b/lib/ansible/modules/network/fortios/fortios_user_adgrp.py @@ -227,8 +227,8 @@ def filter_user_adgrp_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_device.py b/lib/ansible/modules/network/fortios/fortios_user_device.py index adfdffd3bac..490e8e10b80 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_device.py +++ b/lib/ansible/modules/network/fortios/fortios_user_device.py @@ -305,8 +305,8 @@ def filter_user_device_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_device_access_list.py b/lib/ansible/modules/network/fortios/fortios_user_device_access_list.py index 94029d788bd..6998cc987d2 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_device_access_list.py +++ b/lib/ansible/modules/network/fortios/fortios_user_device_access_list.py @@ -241,8 +241,8 @@ def filter_user_device_access_list_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_device_category.py b/lib/ansible/modules/network/fortios/fortios_user_device_category.py index ba609d07313..e2513dd2235 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_device_category.py +++ b/lib/ansible/modules/network/fortios/fortios_user_device_category.py @@ -217,8 +217,8 @@ def filter_user_device_category_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_device_group.py b/lib/ansible/modules/network/fortios/fortios_user_device_group.py index 1e78ccf9628..bbad35e6e17 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_device_group.py +++ b/lib/ansible/modules/network/fortios/fortios_user_device_group.py @@ -257,8 +257,8 @@ def filter_user_device_group_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_domain_controller.py b/lib/ansible/modules/network/fortios/fortios_user_domain_controller.py index 9438a852d1a..703b02c6334 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_domain_controller.py +++ b/lib/ansible/modules/network/fortios/fortios_user_domain_controller.py @@ -228,8 +228,8 @@ def filter_user_domain_controller_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_fortitoken.py b/lib/ansible/modules/network/fortios/fortios_user_fortitoken.py index dfdc3785d44..e1c95a3d08f 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_fortitoken.py +++ b/lib/ansible/modules/network/fortios/fortios_user_fortitoken.py @@ -251,8 +251,8 @@ def filter_user_fortitoken_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_fsso.py b/lib/ansible/modules/network/fortios/fortios_user_fsso.py index f1b07d810a0..0fabd23038b 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_fsso.py +++ b/lib/ansible/modules/network/fortios/fortios_user_fsso.py @@ -303,8 +303,8 @@ def filter_user_fsso_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_fsso_polling.py b/lib/ansible/modules/network/fortios/fortios_user_fsso_polling.py index 23bd3d4e1b8..095ab9eb88a 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_fsso_polling.py +++ b/lib/ansible/modules/network/fortios/fortios_user_fsso_polling.py @@ -271,8 +271,8 @@ def filter_user_fsso_polling_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_group.py b/lib/ansible/modules/network/fortios/fortios_user_group.py index 639863b625a..94bf51dabbf 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_group.py +++ b/lib/ansible/modules/network/fortios/fortios_user_group.py @@ -445,8 +445,8 @@ def filter_user_group_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_krb_keytab.py b/lib/ansible/modules/network/fortios/fortios_user_krb_keytab.py index 1489fc586ca..a7dac52cbed 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_krb_keytab.py +++ b/lib/ansible/modules/network/fortios/fortios_user_krb_keytab.py @@ -223,8 +223,8 @@ def filter_user_krb_keytab_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_ldap.py b/lib/ansible/modules/network/fortios/fortios_user_ldap.py index c5361593acf..ed79ab203de 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_ldap.py +++ b/lib/ansible/modules/network/fortios/fortios_user_ldap.py @@ -359,8 +359,8 @@ def filter_user_ldap_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_local.py b/lib/ansible/modules/network/fortios/fortios_user_local.py index e3839bdc0cb..ba413568efd 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_local.py +++ b/lib/ansible/modules/network/fortios/fortios_user_local.py @@ -333,8 +333,8 @@ def filter_user_local_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_password_policy.py b/lib/ansible/modules/network/fortios/fortios_user_password_policy.py index 184b4a32b5e..01738f96213 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_password_policy.py +++ b/lib/ansible/modules/network/fortios/fortios_user_password_policy.py @@ -217,8 +217,8 @@ def filter_user_password_policy_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_peer.py b/lib/ansible/modules/network/fortios/fortios_user_peer.py index 840b098bd27..e69987a9448 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_peer.py +++ b/lib/ansible/modules/network/fortios/fortios_user_peer.py @@ -287,8 +287,8 @@ def filter_user_peer_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_peergrp.py b/lib/ansible/modules/network/fortios/fortios_user_peergrp.py index eb3284fa1fe..690f602380a 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_peergrp.py +++ b/lib/ansible/modules/network/fortios/fortios_user_peergrp.py @@ -220,8 +220,8 @@ def filter_user_peergrp_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_pop3.py b/lib/ansible/modules/network/fortios/fortios_user_pop3.py index 8ba10bf39a2..97b522c3a5d 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_pop3.py +++ b/lib/ansible/modules/network/fortios/fortios_user_pop3.py @@ -238,8 +238,8 @@ def filter_user_pop3_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_quarantine.py b/lib/ansible/modules/network/fortios/fortios_user_quarantine.py index 92b43333784..6537a41300b 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_quarantine.py +++ b/lib/ansible/modules/network/fortios/fortios_user_quarantine.py @@ -246,8 +246,8 @@ def filter_user_quarantine_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_radius.py b/lib/ansible/modules/network/fortios/fortios_user_radius.py index 7d89516c190..1584263548b 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_radius.py +++ b/lib/ansible/modules/network/fortios/fortios_user_radius.py @@ -589,8 +589,8 @@ def filter_user_radius_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_security_exempt_list.py b/lib/ansible/modules/network/fortios/fortios_user_security_exempt_list.py index 36f0ba96b0b..53ced001cee 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_security_exempt_list.py +++ b/lib/ansible/modules/network/fortios/fortios_user_security_exempt_list.py @@ -277,8 +277,8 @@ def filter_user_security_exempt_list_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_setting.py b/lib/ansible/modules/network/fortios/fortios_user_setting.py index 434376d33dd..fbc7a95bf12 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_user_setting.py @@ -324,8 +324,8 @@ def filter_user_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_user_tacacsplus.py b/lib/ansible/modules/network/fortios/fortios_user_tacacsplus.py index 08c646de181..70ebb3a109a 100644 --- a/lib/ansible/modules/network/fortios/fortios_user_tacacsplus.py +++ b/lib/ansible/modules/network/fortios/fortios_user_tacacsplus.py @@ -284,8 +284,8 @@ def filter_user_tacacsplus_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_voip_profile.py b/lib/ansible/modules/network/fortios/fortios_voip_profile.py index 1009629a575..0c6f3a8a987 100644 --- a/lib/ansible/modules/network/fortios/fortios_voip_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_voip_profile.py @@ -1018,8 +1018,8 @@ def filter_voip_profile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_certificate_ca.py b/lib/ansible/modules/network/fortios/fortios_vpn_certificate_ca.py index 393b044c0bb..076342de85b 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_certificate_ca.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_certificate_ca.py @@ -265,8 +265,8 @@ def filter_vpn_certificate_ca_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_certificate_crl.py b/lib/ansible/modules/network/fortios/fortios_vpn_certificate_crl.py index 047272604c8..4ed91be827e 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_certificate_crl.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_certificate_crl.py @@ -283,8 +283,8 @@ def filter_vpn_certificate_crl_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_certificate_local.py b/lib/ansible/modules/network/fortios/fortios_vpn_certificate_local.py index 84ecec1f15e..84393df2ff5 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_certificate_local.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_certificate_local.py @@ -349,8 +349,8 @@ def filter_vpn_certificate_local_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_certificate_ocsp_server.py b/lib/ansible/modules/network/fortios/fortios_vpn_certificate_ocsp_server.py index 43c7c537a5d..5b4f27ee53d 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_certificate_ocsp_server.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_certificate_ocsp_server.py @@ -242,8 +242,8 @@ def filter_vpn_certificate_ocsp_server_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_certificate_remote.py b/lib/ansible/modules/network/fortios/fortios_vpn_certificate_remote.py index ac599a0758e..6878baf29db 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_certificate_remote.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_certificate_remote.py @@ -230,8 +230,8 @@ def filter_vpn_certificate_remote_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_certificate_setting.py b/lib/ansible/modules/network/fortios/fortios_vpn_certificate_setting.py index c34403b8f26..8dcb3eae673 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_certificate_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_certificate_setting.py @@ -324,8 +324,8 @@ def filter_vpn_certificate_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_concentrator.py b/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_concentrator.py index 600edf0fd16..e0a6027d390 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_concentrator.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_concentrator.py @@ -243,8 +243,8 @@ def filter_vpn_ipsec_concentrator_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_forticlient.py b/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_forticlient.py index 8d7f48f2f80..67f8a7310ce 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_forticlient.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_forticlient.py @@ -242,8 +242,8 @@ def filter_vpn_ipsec_forticlient_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_manualkey.py b/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_manualkey.py index 56200378a7b..a0d4fdeb000 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_manualkey.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_manualkey.py @@ -280,8 +280,8 @@ def filter_vpn_ipsec_manualkey_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_manualkey_interface.py b/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_manualkey_interface.py index 9a49eb6acd1..6eeebb80253 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_manualkey_interface.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_manualkey_interface.py @@ -307,8 +307,8 @@ def filter_vpn_ipsec_manualkey_interface_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_phase1.py b/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_phase1.py index df838c88f9b..d08b560901b 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_phase1.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_phase1.py @@ -983,8 +983,8 @@ def filter_vpn_ipsec_phase1_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_phase1_interface.py b/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_phase1_interface.py index 3cf19f05b1b..1646df559e0 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_phase1_interface.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_phase1_interface.py @@ -1175,8 +1175,8 @@ def filter_vpn_ipsec_phase1_interface_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_phase2.py b/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_phase2.py index 685c72aed96..7c80a86b984 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_phase2.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_phase2.py @@ -517,8 +517,8 @@ def filter_vpn_ipsec_phase2_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_phase2_interface.py b/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_phase2_interface.py index b2562aaddd8..e28b41ae2d4 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_phase2_interface.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_ipsec_phase2_interface.py @@ -592,8 +592,8 @@ def flatten_multilists_attributes(data): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_l2tp.py b/lib/ansible/modules/network/fortios/fortios_vpn_l2tp.py index 18ba6033e56..d74ce39d8a3 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_l2tp.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_l2tp.py @@ -224,8 +224,8 @@ def filter_vpn_l2tp_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_pptp.py b/lib/ansible/modules/network/fortios/fortios_vpn_pptp.py index 8106f2546dc..23e55b84545 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_pptp.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_pptp.py @@ -229,8 +229,8 @@ def filter_vpn_pptp_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_ssl_settings.py b/lib/ansible/modules/network/fortios/fortios_vpn_ssl_settings.py index 9975d038948..52d6bdf9d67 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_ssl_settings.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_ssl_settings.py @@ -706,8 +706,8 @@ def filter_vpn_ssl_settings_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_ssl_web_host_check_software.py b/lib/ansible/modules/network/fortios/fortios_vpn_ssl_web_host_check_software.py index f78581d1137..630ffaed5fa 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_ssl_web_host_check_software.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_ssl_web_host_check_software.py @@ -287,8 +287,8 @@ def filter_vpn_ssl_web_host_check_software_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_ssl_web_portal.py b/lib/ansible/modules/network/fortios/fortios_vpn_ssl_web_portal.py index 784b8053f91..601575385bf 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_ssl_web_portal.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_ssl_web_portal.py @@ -964,8 +964,8 @@ def filter_vpn_ssl_web_portal_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_ssl_web_realm.py b/lib/ansible/modules/network/fortios/fortios_vpn_ssl_web_realm.py index 83168588f7a..cbfdb6da531 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_ssl_web_realm.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_ssl_web_realm.py @@ -222,8 +222,8 @@ def filter_vpn_ssl_web_realm_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_ssl_web_user_bookmark.py b/lib/ansible/modules/network/fortios/fortios_vpn_ssl_web_user_bookmark.py index b659976f270..2c43dd07a48 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_ssl_web_user_bookmark.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_ssl_web_user_bookmark.py @@ -394,8 +394,8 @@ def filter_vpn_ssl_web_user_bookmark_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_vpn_ssl_web_user_group_bookmark.py b/lib/ansible/modules/network/fortios/fortios_vpn_ssl_web_user_group_bookmark.py index 1a0d1e934d8..b0906819a6e 100644 --- a/lib/ansible/modules/network/fortios/fortios_vpn_ssl_web_user_group_bookmark.py +++ b/lib/ansible/modules/network/fortios/fortios_vpn_ssl_web_user_group_bookmark.py @@ -389,8 +389,8 @@ def filter_vpn_ssl_web_user_group_bookmark_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_waf_main_class.py b/lib/ansible/modules/network/fortios/fortios_waf_main_class.py index c46b8871147..555e3876d20 100644 --- a/lib/ansible/modules/network/fortios/fortios_waf_main_class.py +++ b/lib/ansible/modules/network/fortios/fortios_waf_main_class.py @@ -212,8 +212,8 @@ def filter_waf_main_class_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_waf_profile.py b/lib/ansible/modules/network/fortios/fortios_waf_profile.py index 78d5c8e8369..a8ac8337b8c 100644 --- a/lib/ansible/modules/network/fortios/fortios_waf_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_waf_profile.py @@ -1341,8 +1341,8 @@ def filter_waf_profile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_waf_signature.py b/lib/ansible/modules/network/fortios/fortios_waf_signature.py index 631bfbca73b..ffa7fb2dc12 100644 --- a/lib/ansible/modules/network/fortios/fortios_waf_signature.py +++ b/lib/ansible/modules/network/fortios/fortios_waf_signature.py @@ -212,8 +212,8 @@ def filter_waf_signature_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_waf_sub_class.py b/lib/ansible/modules/network/fortios/fortios_waf_sub_class.py index 50409bab925..3c6d49d74a9 100644 --- a/lib/ansible/modules/network/fortios/fortios_waf_sub_class.py +++ b/lib/ansible/modules/network/fortios/fortios_waf_sub_class.py @@ -212,8 +212,8 @@ def filter_waf_sub_class_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wanopt_auth_group.py b/lib/ansible/modules/network/fortios/fortios_wanopt_auth_group.py index 05ec394a8e0..14604642124 100644 --- a/lib/ansible/modules/network/fortios/fortios_wanopt_auth_group.py +++ b/lib/ansible/modules/network/fortios/fortios_wanopt_auth_group.py @@ -241,8 +241,8 @@ def filter_wanopt_auth_group_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wanopt_cache_service.py b/lib/ansible/modules/network/fortios/fortios_wanopt_cache_service.py index 1129db91419..012d73199c7 100644 --- a/lib/ansible/modules/network/fortios/fortios_wanopt_cache_service.py +++ b/lib/ansible/modules/network/fortios/fortios_wanopt_cache_service.py @@ -287,8 +287,8 @@ def filter_wanopt_cache_service_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wanopt_content_delivery_network_rule.py b/lib/ansible/modules/network/fortios/fortios_wanopt_content_delivery_network_rule.py index bf38f5c6960..ecc61d13f1b 100644 --- a/lib/ansible/modules/network/fortios/fortios_wanopt_content_delivery_network_rule.py +++ b/lib/ansible/modules/network/fortios/fortios_wanopt_content_delivery_network_rule.py @@ -452,8 +452,8 @@ def filter_wanopt_content_delivery_network_rule_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wanopt_peer.py b/lib/ansible/modules/network/fortios/fortios_wanopt_peer.py index b2b761fdcaa..514185fd00d 100644 --- a/lib/ansible/modules/network/fortios/fortios_wanopt_peer.py +++ b/lib/ansible/modules/network/fortios/fortios_wanopt_peer.py @@ -211,8 +211,8 @@ def filter_wanopt_peer_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wanopt_profile.py b/lib/ansible/modules/network/fortios/fortios_wanopt_profile.py index 2250a206390..09bc5a20a08 100644 --- a/lib/ansible/modules/network/fortios/fortios_wanopt_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_wanopt_profile.py @@ -589,8 +589,8 @@ def filter_wanopt_profile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wanopt_remote_storage.py b/lib/ansible/modules/network/fortios/fortios_wanopt_remote_storage.py index d3ce239dd8c..b9f2ce6ca90 100644 --- a/lib/ansible/modules/network/fortios/fortios_wanopt_remote_storage.py +++ b/lib/ansible/modules/network/fortios/fortios_wanopt_remote_storage.py @@ -216,8 +216,8 @@ def filter_wanopt_remote_storage_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wanopt_settings.py b/lib/ansible/modules/network/fortios/fortios_wanopt_settings.py index c58434375ff..521776293f5 100644 --- a/lib/ansible/modules/network/fortios/fortios_wanopt_settings.py +++ b/lib/ansible/modules/network/fortios/fortios_wanopt_settings.py @@ -213,8 +213,8 @@ def filter_wanopt_settings_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wanopt_webcache.py b/lib/ansible/modules/network/fortios/fortios_wanopt_webcache.py index 516db7ec0c2..10e16b6000b 100644 --- a/lib/ansible/modules/network/fortios/fortios_wanopt_webcache.py +++ b/lib/ansible/modules/network/fortios/fortios_wanopt_webcache.py @@ -317,8 +317,8 @@ def filter_wanopt_webcache_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_web_proxy_debug_url.py b/lib/ansible/modules/network/fortios/fortios_web_proxy_debug_url.py index b144d8485e9..a4ea10a7da0 100644 --- a/lib/ansible/modules/network/fortios/fortios_web_proxy_debug_url.py +++ b/lib/ansible/modules/network/fortios/fortios_web_proxy_debug_url.py @@ -229,8 +229,8 @@ def filter_web_proxy_debug_url_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_web_proxy_explicit.py b/lib/ansible/modules/network/fortios/fortios_web_proxy_explicit.py index fa545cb9809..4268d64aba1 100644 --- a/lib/ansible/modules/network/fortios/fortios_web_proxy_explicit.py +++ b/lib/ansible/modules/network/fortios/fortios_web_proxy_explicit.py @@ -444,8 +444,8 @@ def filter_web_proxy_explicit_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_web_proxy_forward_server.py b/lib/ansible/modules/network/fortios/fortios_web_proxy_forward_server.py index 8bf6dfc2f80..30974558c72 100644 --- a/lib/ansible/modules/network/fortios/fortios_web_proxy_forward_server.py +++ b/lib/ansible/modules/network/fortios/fortios_web_proxy_forward_server.py @@ -260,8 +260,8 @@ def filter_web_proxy_forward_server_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_web_proxy_forward_server_group.py b/lib/ansible/modules/network/fortios/fortios_web_proxy_forward_server_group.py index eed5569c442..ab7a45e033f 100644 --- a/lib/ansible/modules/network/fortios/fortios_web_proxy_forward_server_group.py +++ b/lib/ansible/modules/network/fortios/fortios_web_proxy_forward_server_group.py @@ -253,8 +253,8 @@ def filter_web_proxy_forward_server_group_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_web_proxy_global.py b/lib/ansible/modules/network/fortios/fortios_web_proxy_global.py index a8721bcc003..008ddff7151 100644 --- a/lib/ansible/modules/network/fortios/fortios_web_proxy_global.py +++ b/lib/ansible/modules/network/fortios/fortios_web_proxy_global.py @@ -312,8 +312,8 @@ def filter_web_proxy_global_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_web_proxy_profile.py b/lib/ansible/modules/network/fortios/fortios_web_proxy_profile.py index 22d9366e6f3..6af78a097af 100644 --- a/lib/ansible/modules/network/fortios/fortios_web_proxy_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_web_proxy_profile.py @@ -337,8 +337,8 @@ def filter_web_proxy_profile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_web_proxy_url_match.py b/lib/ansible/modules/network/fortios/fortios_web_proxy_url_match.py index b4510e96c97..202222eecbc 100644 --- a/lib/ansible/modules/network/fortios/fortios_web_proxy_url_match.py +++ b/lib/ansible/modules/network/fortios/fortios_web_proxy_url_match.py @@ -239,8 +239,8 @@ def filter_web_proxy_url_match_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_web_proxy_wisp.py b/lib/ansible/modules/network/fortios/fortios_web_proxy_wisp.py index ed604aed5b6..4b19e15901d 100644 --- a/lib/ansible/modules/network/fortios/fortios_web_proxy_wisp.py +++ b/lib/ansible/modules/network/fortios/fortios_web_proxy_wisp.py @@ -239,8 +239,8 @@ def filter_web_proxy_wisp_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_webfilter_content.py b/lib/ansible/modules/network/fortios/fortios_webfilter_content.py index ebedc137f74..3b9cda9e281 100644 --- a/lib/ansible/modules/network/fortios/fortios_webfilter_content.py +++ b/lib/ansible/modules/network/fortios/fortios_webfilter_content.py @@ -290,8 +290,8 @@ def filter_webfilter_content_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_webfilter_content_header.py b/lib/ansible/modules/network/fortios/fortios_webfilter_content_header.py index 6f340ff59bb..fc8078fc7d8 100644 --- a/lib/ansible/modules/network/fortios/fortios_webfilter_content_header.py +++ b/lib/ansible/modules/network/fortios/fortios_webfilter_content_header.py @@ -260,8 +260,8 @@ def filter_webfilter_content_header_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_webfilter_fortiguard.py b/lib/ansible/modules/network/fortios/fortios_webfilter_fortiguard.py index 0f2ff208ef5..0180df88d28 100644 --- a/lib/ansible/modules/network/fortios/fortios_webfilter_fortiguard.py +++ b/lib/ansible/modules/network/fortios/fortios_webfilter_fortiguard.py @@ -266,8 +266,8 @@ def filter_webfilter_fortiguard_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_webfilter_ftgd_local_cat.py b/lib/ansible/modules/network/fortios/fortios_webfilter_ftgd_local_cat.py index 94200d79adb..4153577d213 100644 --- a/lib/ansible/modules/network/fortios/fortios_webfilter_ftgd_local_cat.py +++ b/lib/ansible/modules/network/fortios/fortios_webfilter_ftgd_local_cat.py @@ -235,8 +235,8 @@ def filter_webfilter_ftgd_local_cat_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_webfilter_ftgd_local_rating.py b/lib/ansible/modules/network/fortios/fortios_webfilter_ftgd_local_rating.py index ee0cac6b5d0..5b985251fba 100644 --- a/lib/ansible/modules/network/fortios/fortios_webfilter_ftgd_local_rating.py +++ b/lib/ansible/modules/network/fortios/fortios_webfilter_ftgd_local_rating.py @@ -235,8 +235,8 @@ def filter_webfilter_ftgd_local_rating_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_webfilter_ips_urlfilter_cache_setting.py b/lib/ansible/modules/network/fortios/fortios_webfilter_ips_urlfilter_cache_setting.py index baf72727ec0..156fe2c9de7 100644 --- a/lib/ansible/modules/network/fortios/fortios_webfilter_ips_urlfilter_cache_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_webfilter_ips_urlfilter_cache_setting.py @@ -203,8 +203,8 @@ def filter_webfilter_ips_urlfilter_cache_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_webfilter_ips_urlfilter_setting.py b/lib/ansible/modules/network/fortios/fortios_webfilter_ips_urlfilter_setting.py index aa4c9b21674..c8dfdc57975 100644 --- a/lib/ansible/modules/network/fortios/fortios_webfilter_ips_urlfilter_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_webfilter_ips_urlfilter_setting.py @@ -214,8 +214,8 @@ def filter_webfilter_ips_urlfilter_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_webfilter_ips_urlfilter_setting6.py b/lib/ansible/modules/network/fortios/fortios_webfilter_ips_urlfilter_setting6.py index 102b583dcc3..a65b13fc34a 100644 --- a/lib/ansible/modules/network/fortios/fortios_webfilter_ips_urlfilter_setting6.py +++ b/lib/ansible/modules/network/fortios/fortios_webfilter_ips_urlfilter_setting6.py @@ -214,8 +214,8 @@ def filter_webfilter_ips_urlfilter_setting6_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_webfilter_override.py b/lib/ansible/modules/network/fortios/fortios_webfilter_override.py index 1de2eb01a2c..3907d1c90b0 100644 --- a/lib/ansible/modules/network/fortios/fortios_webfilter_override.py +++ b/lib/ansible/modules/network/fortios/fortios_webfilter_override.py @@ -283,8 +283,8 @@ def filter_webfilter_override_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_webfilter_profile.py b/lib/ansible/modules/network/fortios/fortios_webfilter_profile.py index 9a33fb4cc5e..1b53663fea2 100644 --- a/lib/ansible/modules/network/fortios/fortios_webfilter_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_webfilter_profile.py @@ -874,8 +874,8 @@ def filter_webfilter_profile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_webfilter_search_engine.py b/lib/ansible/modules/network/fortios/fortios_webfilter_search_engine.py index ab5e5cac6ea..e0ba09b8c3b 100644 --- a/lib/ansible/modules/network/fortios/fortios_webfilter_search_engine.py +++ b/lib/ansible/modules/network/fortios/fortios_webfilter_search_engine.py @@ -261,8 +261,8 @@ def filter_webfilter_search_engine_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_webfilter_urlfilter.py b/lib/ansible/modules/network/fortios/fortios_webfilter_urlfilter.py index 76196811ee9..2784ed7a59d 100644 --- a/lib/ansible/modules/network/fortios/fortios_webfilter_urlfilter.py +++ b/lib/ansible/modules/network/fortios/fortios_webfilter_urlfilter.py @@ -327,8 +327,8 @@ def filter_webfilter_urlfilter_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_ap_status.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_ap_status.py index 6725cc5cd70..97f48bb6365 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_ap_status.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_ap_status.py @@ -227,8 +227,8 @@ def filter_wireless_controller_ap_status_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_ble_profile.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_ble_profile.py index ddbc0bf2084..7712011901b 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_ble_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_ble_profile.py @@ -292,8 +292,8 @@ def filter_wireless_controller_ble_profile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_bonjour_profile.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_bonjour_profile.py index c4cab143b6e..8f9fccafb85 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_bonjour_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_bonjour_profile.py @@ -260,8 +260,8 @@ def filter_wireless_controller_bonjour_profile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_global.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_global.py index ec7d93b774d..12f6c8707b5 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_global.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_global.py @@ -306,8 +306,8 @@ def filter_wireless_controller_global_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_3gpp_cellular.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_3gpp_cellular.py index e5b0d2d3ff8..b7207585c56 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_3gpp_cellular.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_3gpp_cellular.py @@ -230,8 +230,8 @@ def filter_wireless_controller_hotspot20_anqp_3gpp_cellular_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_ip_address_type.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_ip_address_type.py index 14ddb9270ad..da402b36711 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_ip_address_type.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_ip_address_type.py @@ -230,8 +230,8 @@ def filter_wireless_controller_hotspot20_anqp_ip_address_type_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_nai_realm.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_nai_realm.py index 528851e6cca..a21018d5dca 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_nai_realm.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_nai_realm.py @@ -319,8 +319,8 @@ def filter_wireless_controller_hotspot20_anqp_nai_realm_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_network_auth_type.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_network_auth_type.py index b98219b998e..b9fbb180d20 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_network_auth_type.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_network_auth_type.py @@ -222,8 +222,8 @@ def filter_wireless_controller_hotspot20_anqp_network_auth_type_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_roaming_consortium.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_roaming_consortium.py index 6dfa42bd36b..ce5a74bcb1f 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_roaming_consortium.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_roaming_consortium.py @@ -230,8 +230,8 @@ def filter_wireless_controller_hotspot20_anqp_roaming_consortium_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_venue_name.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_venue_name.py index f4793ef444c..3a71ca89086 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_venue_name.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_anqp_venue_name.py @@ -230,8 +230,8 @@ def filter_wireless_controller_hotspot20_anqp_venue_name_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_h2qp_conn_capability.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_h2qp_conn_capability.py index 32d9f8bb4cb..fe6dfcbc06d 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_h2qp_conn_capability.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_h2qp_conn_capability.py @@ -309,8 +309,8 @@ def filter_wireless_controller_hotspot20_h2qp_conn_capability_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_h2qp_operator_name.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_h2qp_operator_name.py index cbe38684af9..424a18f7889 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_h2qp_operator_name.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_h2qp_operator_name.py @@ -230,8 +230,8 @@ def filter_wireless_controller_hotspot20_h2qp_operator_name_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_h2qp_osu_provider.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_h2qp_osu_provider.py index 865f97739bf..ab4e2bda7fd 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_h2qp_osu_provider.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_h2qp_osu_provider.py @@ -278,8 +278,8 @@ def filter_wireless_controller_hotspot20_h2qp_osu_provider_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_h2qp_wan_metric.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_h2qp_wan_metric.py index 3022a91c38e..80d1161c5a4 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_h2qp_wan_metric.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_h2qp_wan_metric.py @@ -259,8 +259,8 @@ def filter_wireless_controller_hotspot20_h2qp_wan_metric_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_hs_profile.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_hs_profile.py index 10c6bceb857..97e732fabd9 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_hs_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_hs_profile.py @@ -483,8 +483,8 @@ def filter_wireless_controller_hotspot20_hs_profile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_icon.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_icon.py index 18a438831dc..47f399df9c8 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_icon.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_icon.py @@ -251,8 +251,8 @@ def filter_wireless_controller_hotspot20_icon_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_qos_map.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_qos_map.py index e275db40ef2..613476e3470 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_qos_map.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_hotspot20_qos_map.py @@ -258,8 +258,8 @@ def filter_wireless_controller_hotspot20_qos_map_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_inter_controller.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_inter_controller.py index c35817e253a..e5105850fdc 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_inter_controller.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_inter_controller.py @@ -256,8 +256,8 @@ def filter_wireless_controller_inter_controller_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_qos_profile.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_qos_profile.py index 4640d6d85ad..54abaab8089 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_qos_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_qos_profile.py @@ -347,8 +347,8 @@ def filter_wireless_controller_qos_profile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_setting.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_setting.py index 038746265c9..62c130ec2e8 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_setting.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_setting.py @@ -349,8 +349,8 @@ def filter_wireless_controller_setting_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_timers.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_timers.py index 7a4bba7c0e8..afa72c31425 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_timers.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_timers.py @@ -287,8 +287,8 @@ def filter_wireless_controller_timers_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_utm_profile.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_utm_profile.py index 7b82c96010b..60ffd969712 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_utm_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_utm_profile.py @@ -266,8 +266,8 @@ def filter_wireless_controller_utm_profile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_vap.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_vap.py index 54fd9a40a77..eaee736aa6b 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_vap.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_vap.py @@ -1152,8 +1152,8 @@ def filter_wireless_controller_vap_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_vap_group.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_vap_group.py index 10f866b1a13..ff3688061a6 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_vap_group.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_vap_group.py @@ -225,8 +225,8 @@ def filter_wireless_controller_vap_group_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_wids_profile.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_wids_profile.py index 4bf3951e3cf..a96816e3104 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_wids_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_wids_profile.py @@ -547,8 +547,8 @@ def filter_wireless_controller_wids_profile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_wtp.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_wtp.py index aad60890afb..e22c52bc89f 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_wtp.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_wtp.py @@ -881,8 +881,8 @@ def filter_wireless_controller_wtp_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_wtp_group.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_wtp_group.py index 90c28701abb..38482bb4840 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_wtp_group.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_wtp_group.py @@ -277,8 +277,8 @@ def filter_wireless_controller_wtp_group_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items(): diff --git a/lib/ansible/modules/network/fortios/fortios_wireless_controller_wtp_profile.py b/lib/ansible/modules/network/fortios/fortios_wireless_controller_wtp_profile.py index 9b1d5286f4e..9fd45f5ec3b 100644 --- a/lib/ansible/modules/network/fortios/fortios_wireless_controller_wtp_profile.py +++ b/lib/ansible/modules/network/fortios/fortios_wireless_controller_wtp_profile.py @@ -1575,8 +1575,8 @@ def filter_wireless_controller_wtp_profile_data(json): def underscore_to_hyphen(data): if isinstance(data, list): - for elem in data: - elem = underscore_to_hyphen(elem) + for i, elem in enumerate(data): + data[i] = underscore_to_hyphen(elem) elif isinstance(data, dict): new_data = {} for k, v in data.items():