Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Fixes #5198 - converts iterator to seq
Browse files Browse the repository at this point in the history
Test Plan:
test manually - use latest plugins before and after this patch.
Before app creation should fail, should succeed afterwards

Reviewers: aquamatthias, meichstedt, jenkins

Reviewed By: aquamatthias, meichstedt, jenkins

Subscribers: jenkins, marathon-team

Differential Revision: https://phabricator.mesosphere.com/D526
  • Loading branch information
unterstein committed Feb 17, 2017
1 parent 1ba8ea7 commit 58e40a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private[plugin] class PluginManagerImpl(
case _ => plugin
}
val serviceLoader = ServiceLoader.load(ct.runtimeClass.asInstanceOf[Class[T]], classLoader)
val providers = serviceLoader.iterator()
val providers = serviceLoader.iterator().toSeq
val plugins = definitions.plugins.withFilter(_.plugin == ct.runtimeClass.getName).map { definition =>
providers
.find(_.getClass.getName == definition.implementation)
Expand Down

0 comments on commit 58e40a8

Please sign in to comment.