Open vojtechsokol opened 6 years ago
@vinzenz @vojtechsokol This is something that bites me almost every time, I think we should switch to using ast
module for discover
so that we can handle this use case in a more robust way.
I whip up something quick, @vojtechsokol can you please try #375 ?
I think this issue shouldn't be closed as the problem still persists. If I use the solution from #375, the traceback is gone which is nice, however I don't get any information if there is some failure.
Related: RHELLEAPP-980
When an actor or a model contains a bug,
snactor discover
fails and no output is shown.Reproducer: Install leapp framework, create new repo and actor:
The actor is buggy, as it is missing a tag attribute.
Running
snactor discover
fails because of this:Similar thing happens when there is a bug in a model - create new model and don't fill in the topic:
The
discover
subcommand now does not output the traceback but still doesn't show the discovered objects.I expect the
discover
subcommand to deal with the buggy objects and show object where inspection was ok and possibly also the buggy ones, e.g.: