splunk / splunk-add-on-microsoft-azure

Splunk Add-on for Microsoft Azure
Apache License 2.0
11 stars 7 forks source link

AttributeError: 'dict' object has no attribute 'iteritems' #78

Open sahasneil opened 3 months ago

sahasneil commented 3 months ago

Hi,

Observing this error every now then. Tried creating a cloned input, not helping.

| Get error when collecting events. Traceback (most recent call last): File "/opt/splunk/etc/apps/TA-MS-AAD/bin/ta_azure_utils/topology.py", line 80, in get_topology_by_rg for key, resource in resources.iteritems(): AttributeError: 'dict' object has no attribute 'iteritems'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/opt/splunk/etc/apps/TA-MS-AAD/lib/splunktaucclib/modinput_wrapper/base_modinput.py", line 140, in stream_events self.collect_events(ew) File "/opt/splunk/etc/apps/TA-MS-AAD/bin/azure_topology_automatic.py", line 127, in collect_events topology = get_topology_by_rg(helper, access_token, subscription_id, environment, api_version, resourceGroupName, networkWatcherName, targetResourceGroupName) File "/opt/splunk/etc/apps/TA-MS-AAD/bin/ta_azure_utils/topology.py", line 162, in get_topology_by_rg raise e File "/opt/splunk/etc/apps/TA-MS-AAD/bin/ta_azure_utils/topology.py", line 131, in get_topology_by_rg subnet_resource = resources[subnet_assoc["resourceId"]]