Skip to content

Commit fe4391c

Browse files
committed
Fixed error in validate hosts
1 parent a599852 commit fe4391c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

peel-core/src/main/scala/eu/stratosphere/peel/core/cli/command/validate/ValidateHosts.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,10 @@ class ValidateHosts extends Command {
8787
logger.info(s"Validating configuration for experiment '${exp.name}'")
8888

8989
val config = exp.config
90-
val systems = for (n <- graph.reverse.traverse(); if graph.descendants(exp).contains(n)) yield n match {
91-
case x: System => x
92-
}
90+
val systems = for (
91+
n <- graph.reverse.traverse()
92+
if graph.descendants(exp).contains(n) && n.isInstanceOf[System]
93+
) yield n.asInstanceOf[System]
9394

9495
// gather masters, avoid duplicates
9596
val masters = {

0 commit comments

Comments
 (0)