Fix: Do not touch PAPI history on bad DICT__nodes 65/33865/3
authorVratko Polak <vrpolak@cisco.com>
Tue, 28 Sep 2021 12:59:28 +0000 (14:59 +0200)
committerVratko Polak <vrpolak@cisco.com>
Wed, 6 Oct 2021 08:50:26 +0000 (08:50 +0000)
commitb61c774897a6cce09bd597af6124831e8aea5e8c
tree81f8d4a01b24b1beb98a04a2efd24e43b11811cd
parent78c59bd99bec595acbd24be8fb1c3337e4b41e56
Fix: Do not touch PAPI history on bad DICT__nodes

Usually, DICT__nodes is populated from reserved topology yaml.
But is some cases (doc generation, maybe pylint) there is no yaml.

The proper fix is to never execute any business logic
just when a module is imported.
This is just a quick workaround.

Ticket: CSIT-1793

Change-Id: I6d7250dc75d12baf120758ade8730af89431265a
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
resources/libraries/python/PapiHistory.py