Skip to content

Commit

Permalink
keep scope of linked map local
Browse files Browse the repository at this point in the history
  • Loading branch information
FriederikeHanssen committed Jul 25, 2024
1 parent 1248bbb commit 3b22564
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/local/seqera_runs_dump/functions.nf
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ Map getRunMetadata(meta, log, api_endpoint, trustStorePath, trustStorePassword)
if (workspaceId) {
def workflowResponse = client.get(path: "/workflow/${runId}", query: ["workspaceId":workspaceId], headers: authHeader)
if (workflowResponse.statusCode == 200) {
metaMap = workflowResponse?.json?.workflow?.subMap("runName", "workDir", "projectName")
config = new ConfigSlurper().parse( workflowResponse?.json?.workflow?.configText )
def metaMap = workflowResponse?.json?.workflow?.subMap("runName", "workDir", "projectName")
def config = new ConfigSlurper().parse( workflowResponse?.json?.workflow?.configText )
metaMap.fusion = config.fusion.enabled

return metaMap ?: [:]
Expand Down
3 changes: 2 additions & 1 deletion workflows/nf_aggregate/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ workflow NF_AGGREGATE {
skip_multiqc // val: Skip MultiQC
java_truststore_path // val: Path to java truststore if using private certs
java_truststore_password // val: Password for java truststore if using private certs

main:

ch_versions = Channel.empty()
Expand All @@ -30,6 +30,7 @@ workflow NF_AGGREGATE {
//
// MODULE: Fetch run information via the Seqera CLI
//

SEQERA_RUNS_DUMP (
ids,
seqera_api_endpoint,
Expand Down

0 comments on commit 3b22564

Please sign in to comment.