Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: _clean_junos_data throws AttributeError: 'list' object has no attribute 'lower' #902

Open
PieterL75 opened this issue Jun 29, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@PieterL75
Copy link

Suzieq version

0.21.0

Install Type

hand deployed python

Python version

3.9

Impacted component

sq-poller

Steps to Reproduce

Add a junos device EX9208 Junos: 14.2R8.4 (yes I know...)

Expected Behavior

No error :-)

Observed Behavior

Poller gets info from by junos box, and throws :

2023-02-28 04:42:08,223 - suzieq.poller.worker.services.service - ERROR - Processing data failed for service interfaces on node 172.29.252.216
Traceback (most recent call last):
  File "/opt/suzieq/venv/lib/python3.9/site-packages/suzieq/poller/worker/services/service.py", line 819, in run
    result = self.process_data(output)
  File "/opt/suzieq/venv/lib/python3.9/site-packages/suzieq/poller/worker/services/service.py", line 478, in process_data
    return self.clean_data(result, data)
  File "/opt/suzieq/venv/lib/python3.9/site-packages/suzieq/poller/worker/services/service.py", line 537, in clean_data
    processed_data = dev_clean_fn(processed_data, raw_data)
  File "/opt/suzieq/venv/lib/python3.9/site-packages/suzieq/poller/worker/services/interfaces.py", line 298, in _clean_junos_data
    entry['type'] = entry.get('type', '').lower()
AttributeError: 'list' object has no attribute 'lower'

Screenshots

Additional Context

@PieterL75 PieterL75 added the bug Something isn't working label Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant