From b46f5d056496246a45f3d140392364c3468c8ae7 Mon Sep 17 00:00:00 2001 From: Abhinav Sharma Date: Wed, 17 Jul 2024 11:12:16 +0200 Subject: [PATCH] fix type casting for the exposed API client parameters --- .../src/main/nextflow/nomad/config/NomadClientOpts.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/nf-nomad/src/main/nextflow/nomad/config/NomadClientOpts.groovy b/plugins/nf-nomad/src/main/nextflow/nomad/config/NomadClientOpts.groovy index 2370548..feadbf6 100644 --- a/plugins/nf-nomad/src/main/nextflow/nomad/config/NomadClientOpts.groovy +++ b/plugins/nf-nomad/src/main/nextflow/nomad/config/NomadClientOpts.groovy @@ -37,11 +37,11 @@ class NomadClientOpts{ final String address final String token - final connectionTimeout + final int connectionTimeout //NOTE: For now, these are not exposed. - final readTimeout = 6000 - final writeTimeout = 6000 + final int readTimeout = 6000 + final int writeTimeout = 6000 NomadClientOpts(Map nomadClientOpts, Map env=null){ assert nomadClientOpts!=null @@ -55,7 +55,7 @@ class NomadClientOpts{ address +="/" this.address = address + API_VERSION this.token = nomadClientOpts.token ?: sysEnv.get('NOMAD_TOKEN') - this.connectionTimeout = nomadClientOpts.connectionTimeout ?: 6000 + this.connectionTimeout = (nomadClientOpts.connectionTimeout ?: 6000 ) as Integer //TODO: Add mTLS properties and env vars // https://developer.hashicorp.com/nomad/docs/commands#mtls-environment-variables