Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tapasco
tapasco
Commits
b362690d
Commit
b362690d
authored
Nov 27, 2017
by
Jens Korinth
Browse files
Fix bug in corestats parser
* error in parser caused it to fail when run without options
parent
a2c609c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/scala/tapasco/parser/CoreStatisticsParser.scala
View file @
b362690d
...
...
@@ -7,7 +7,7 @@ private object CoreStatisticsParser {
import
CommonArgParsers._
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
]
_
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment