Skip to content

Commit

Permalink
use named params for NodeRoles creation
Browse files Browse the repository at this point in the history
  • Loading branch information
lmenezes committed Dec 27, 2020
1 parent d049d53 commit 9dbeabb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/commons/NodeRoles.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ object NodeRoles {
val client = truthy((nodeInfo \ "attributes" \ "client").asOpt[String].getOrElse("false"))

NodeRoles(
master && !client,
data && !client,
false // 2.x doesnt support ingest
master = master && !client,
data = data && !client,
ingest = false // 2.x doesnt support ingest
)
}
}
Expand Down

0 comments on commit 9dbeabb

Please sign in to comment.