Defaulting the nodename to 'default'

This commit is contained in:
Viktor Klang 2011-12-25 17:45:55 +01:00
parent cd2dbc0fff
commit fa031bce99
2 changed files with 4 additions and 4 deletions

View file

@ -142,9 +142,9 @@ class RemoteSystemDaemon(system: ActorSystemImpl, remote: Remote, _path: ActorPa
val full = Vector() ++ names
rec(full.mkString("/"), 0) match {
case (Nobody, _) Nobody
case (ref, n) if n == 0 ref
case (ref, n) ref.getChild(full.takeRight(n).iterator)
case (Nobody, _) Nobody
case (ref, 0) ref
case (ref, n) ref.getChild(full.takeRight(n).iterator)
}
}

View file

@ -31,7 +31,7 @@ class RemoteSettings(val config: Config, val systemName: String) extends Extensi
}
val NodeName: String = config.getString("akka.cluster.nodename") match {
case "" throw new ConfigurationException("akka.cluster.nodename configuration property must be defined")
case "" "undefined"
case value value
}