Skip to content
Snippets Groups Projects
Commit fe346781 authored by Sam Roberts's avatar Sam Roberts
Browse files

fix bug with filter potentially being used multiple times

parent 7eb7c6f4
No related branches found
No related tags found
No related merge requests found
......@@ -303,10 +303,10 @@ def _provision_interfaces(config, org_config, ds_name, token):
relevant_interfaces = list(filter(excluded, interfaces))
for interface in relevant_interfaces:
interface['dashboards_info'] = filter(
interface['dashboards_info'] = list(filter(
lambda x: x['name'] != '',
interface['dashboards_info']
)
))
# loop over interfaces and add them to the dashboard_name
# -> folder mapping structure `dashboards` above, for convenience.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment