Skip to content
Snippets Groups Projects
Commit 60f204e4 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Device - gNMI OpenConfig Driver:

- Refining code
parent 1dbc6bdb
No related branches found
No related tags found
1 merge request!299Resolve "(CTTC) Fix CI/CD pipeline end-to-end tests not passing"
...@@ -89,11 +89,15 @@ class InterfaceHandler(_Handler): ...@@ -89,11 +89,15 @@ class InterfaceHandler(_Handler):
LOGGER.warning('Releasing...') LOGGER.warning('Releasing...')
while not objects_to_free.empty(): while not objects_to_free.empty():
LOGGER.warning('Getting...') LOGGER.warning('Getting...')
obj = objects_to_free.get() try:
LOGGER.warning('Releasing: {:s} => {:s}'.format( obj = objects_to_free.get_nowait()
str(obj.path()), str(obj.print_mem('json')) LOGGER.warning('Releasing: {:s} => {:s}'.format(
)) str(obj.path()), str(obj.print_mem('json'))
obj.free() ))
obj.free()
except queue.Empty:
LOGGER.warning('No more objects...')
continue
LOGGER.warning('Release done') LOGGER.warning('Release done')
return str_path, str_data return str_path, str_data
......
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