Skip to content

Commit

Permalink
fix(cli): Use the id to show enabled advisors
Browse files Browse the repository at this point in the history
Otherwise this prints e.g.

    org.ossreviewtoolkit.plugins.advisors.osv.OsvFactory@a146b11

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Nov 16, 2024
1 parent 4d11189 commit bc6bdbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/commands/advisor/src/main/kotlin/AdvisorCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class AdvisorCommand : OrtCommand(

val distinctProviders = providerFactories.distinct()
echo("The following advisors are activated:")
echo("\t" + distinctProviders.joinToString().ifEmpty { "<None>" })
echo("\t" + distinctProviders.joinToString { it.descriptor.id }.ifEmpty { "<None>" })

val advisor = Advisor(distinctProviders, ortConfig.advisor)

Expand Down

0 comments on commit bc6bdbb

Please sign in to comment.