Closed Lawouach closed 3 years ago
Describe the bug
Say you have the following probe:
invalid_python_func_probe = { "name": "hello", "type": "probe", "provider": { "type": "python", "module": "os", "func": "whatever" } }
It's invalid becauset he whatever function does not exist in the module os.
whatever
os
Upon failing, CTK reports an invalid name in the logs:
'os' does not expose 'whatever' in activity 'getrandom'
The reason is simple, we override the name variable during the course of the validation function and therefore log the wrong value.
name
Describe the bug
Say you have the following probe:
It's invalid becauset he
whatever
function does not exist in the moduleos
.Upon failing, CTK reports an invalid name in the logs:
The reason is simple, we override the
name
variable during the course of the validation function and therefore log the wrong value.