Commit b362690d authored by Jens Korinth's avatar Jens Korinth
Browse files

Fix bug in corestats parser

* error in parser caused it to fail when run without options
parent a2c609c5
...@@ -7,7 +7,7 @@ private object CoreStatisticsParser { ...@@ -7,7 +7,7 @@ private object CoreStatisticsParser {
import CommonArgParsers._ import CommonArgParsers._
def corestats: Parser[CoreStatisticsJob] = def corestats: Parser[CoreStatisticsJob] =
IgnoreCase("corestats") ~/ ws1 ~ options ~ ws map (_.apply(CoreStatisticsJob())) IgnoreCase("corestats") ~/ (ws1 ~ options).? ~ ws map (_.map(_.apply(CoreStatisticsJob())) getOrElse CoreStatisticsJob())
private val jobid = identity[CoreStatisticsJob] _ private val jobid = identity[CoreStatisticsJob] _
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment