mirror of
https://github.com/corda/corda.git
synced 2025-04-09 04:15:35 +00:00
irsdemo: Fix api address in Date role
This commit is contained in:
parent
4213da31b2
commit
9e174d3e3a
@ -189,7 +189,9 @@ sealed class CliParams {
|
||||
|
||||
private fun parseDateChange(options: OptionSet): DateChange {
|
||||
return DateChange(
|
||||
apiAddress = HostAndPort.fromString(options.valueOf(CliParamsSpec.apiAddressArg)),
|
||||
apiAddress = HostAndPort.fromString(options.valueOf(
|
||||
CliParamsSpec.apiAddressArg.defaultsTo("localhost:${defaultApiPort(IRSDemoNode.NodeA)}")
|
||||
)),
|
||||
dateString = options.valuesOf(CliParamsSpec.nonOptions).let {
|
||||
if (it.size > 0) {
|
||||
it[0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user