Describe
When trying to create a datasource object from id, the KeyError pops up.
Workaround: use DevTree:
devtree = DevTree()
ds = list(devtree.search_ds_group(field='ds_id', term='144116290808709120'))
if len(ds): ds=ds[0]
else: print("Datasource not found")
SIEM and msiempy versions:
msiempy: 0.3.3
ESM version: 11.3.0
Additional context
>>> from msiempy import DataSource
>>> d=DataSource(id=str(144116290808709120))
INFO - Logged into ESM url with username NGCP. Last login 09/25/2020 03:12:30
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.8/site-packages/msiempy-0.3.3-py3.8.egg/msiempy/core/types.py", line 101, in __init__
"""Call the __prepare__ method of the appropriate metaclass.
File "/usr/local/lib/python3.8/site-packages/msiempy-0.3.3-py3.8.egg/msiempy/device.py", line 1134, in data_from_id
File "/usr/local/lib/python3.8/site-packages/msiempy-0.3.3-py3.8.egg/msiempy/device.py", line 1198, in _map_parameters
KeyError: 'desc_id'
Describe When trying to create a datasource object from id, the
KeyError
pops up.Workaround: use DevTree:
SIEM and msiempy versions:
Additional context