Simplify kapitan/inputs/base.py
gburiola opened this issue · 2 comments
Suggested by @MatteoVoges on #979 (comment)
Not sure why, but kapitan/inputs/base.py iterates on input_paths
and not on the comp_obj
directly.
With the changes introduced on #979, not all compile objects will have input_paths
.
A workaround was introduced here to deal with these specific compile objects without input_paths
Aim of this issue is to investigate why we iterate on input_paths
and not directly on comp_obj
. If possible / feasible, change code to iterate on comp_obj
to simplify the code.
@ramaro may have more context on this.
This might be a historic, original decision that just stayed like this while other things continued to change. I will give this some thought.
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.