From 58e40a8e547c2192f2de06f8735ed4b5456d0616 Mon Sep 17 00:00:00 2001 From: Johannes Unterstein Date: Fri, 17 Feb 2017 13:27:44 +0100 Subject: [PATCH] Fixes #5198 - converts iterator to seq 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 --- .../marathon/core/plugin/impl/PluginManagerImpl.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/mesosphere/marathon/core/plugin/impl/PluginManagerImpl.scala b/src/main/scala/mesosphere/marathon/core/plugin/impl/PluginManagerImpl.scala index 40b735b4df2..e81c1e61bf8 100644 --- a/src/main/scala/mesosphere/marathon/core/plugin/impl/PluginManagerImpl.scala +++ b/src/main/scala/mesosphere/marathon/core/plugin/impl/PluginManagerImpl.scala @@ -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)