nuts
nuts copied to clipboard
Find a better solution than patching attributes onto nornir objects
We patch attributes onto existing objects at two locations in the code:
-
napalm_ping.py: we add adestinationfield to every Nornir-Result. -
result.py: we add anexceptionfield to a nornir_result
There should be a more elegant solution to this - currently, mypy ignores this error using # type: ignore[attr-defined].