Skip to content
Snippets Groups Projects
Commit 2c046880 authored by Erik Reid's avatar Erik Reid
Browse files

serialize list before trying to save

parent aa5b521e
No related branches found
No related tags found
No related merge requests found
......@@ -436,9 +436,9 @@ def clear_cached_classifier_responses(hostname=None):
@log_task_entry_and_exit
def refresh_juniper_bgp_peers(hostname, netconf):
host_peerings = juniper.all_bgp_peers(netconf)
host_peerings = list(juniper.all_bgp_peers(netconf))
r = get_next_redis(InventoryTask.config)
r.set(f'juniper-peerings:hosts:{hostname}', list(host_peerings))
r.set(f'juniper-peerings:hosts:{hostname}', json.dumps(host_peerings))
@log_task_entry_and_exit
......
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