adedd context-name shubification

This commit is contained in:
Marco Lettere 2021-11-23 12:58:20 +01:00
parent e6e7e486f3
commit 79ded74f4d
1 changed files with 9 additions and 0 deletions

View File

@ -126,6 +126,15 @@
"role": "${retrieve_member_role.output.body}",
"queryExpression" : ".role"
}
},
{
"name": "LAMBDA_TASK",
"taskReferenceName": "shubify_context_name",
"type": "LAMBDA",
"inputParameters": {
"context_name" : "${extract_context.output.result.client.name}",
"scriptExpression": "var s = $.context_name; return { shubified_context_name : (s[0] === "/" ? s.replace("/", "") : s).split("/").join("-")"
}
}
]
]