Open happz opened 2 years ago
Note the keys beginning with underscore,
_imported_plan
,_reboot_count
, and so on - these do not have any place to be in the output ofkeys()
and & co, as they are not keys recognized by tmt specification, but implementation details. We need a way to avoid exposing them.
Good point. As those internal keys are not part of the specification we could possibly just ignore them? At least during the export.
Note the keys beginning with underscore,
_imported_plan
,_reboot_count
, and so on - these do not have any place to be in the output ofkeys()
and & co, as they are not keys recognized by tmt specification, but implementation details. We need a way to avoid exposing them.Good point. As those internal keys are not part of the specification we could possibly just ignore them? At least during the export.
Not a good idea in the long run, as some names not worthy of exporting can easily not start with an underscore, but I agree it's the best we can do to patch it for 1.20/quickly. The proper solution would land later.
I agree it's the best we can do to patch it for 1.20/quickly. The proper solution would land later.
Ack.
@psss if you won't mind, I'd keep this issue open, i.e. not something to include in 1.20 - a quick & dirty fix to resolve https://github.com/teemtee/tmt/issues/1729, later I'd add a more mature fix & close this issue.
Understood, ok.
Note the keys beginning with underscore,
_imported_plan
,_reboot_count
, and so on - these do not have any place to be in the output ofkeys()
and & co, as they are not keys recognized by tmt specification, but implementation details. We need a way to avoid exposing them.