Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PFCWD] Fix issue with "pfcwd show stats" command during SONiC init (s…
…onic-net#1018) - What I did Fixed issue with pfcwd show stats command during SONiC init. Traceback was returned if DB was not yet initialized which is incorrect. Correct behavior would to rather return empty line if something is not yet ready to be pulled and displayed. - How I did it Returned empty dictionary instead of None if data are still not present in DB. It is because in source code data expected to be as dictionary type but if there is no expected attributes in DB None was returned. Wich is incorrect and caused following exception: 'NoneType' object has no attribute 'keys' Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
- Loading branch information