mfesiem / msiempy

McAfee SIEM API Python wrapper
https://mfesiem.github.io/docs/msiempy/msiempy.html
MIT License
23 stars 9 forks source link

DevTree search fails after adding a DataSource #78

Open tristanlatr opened 3 years ago

tristanlatr commented 3 years ago

Describe After adding anew DataSource withDevTree.add(), if we call DevTree.search() if raises a KeyError "hostname". We need to call DevTree.refresh() before being able to search the tree again.

The expected behaviour is that the add() method would verify if the Data source was indeed added, then refresh only the Datasource infos.