fix typo
This commit is contained in:
parent
2238e8fb4d
commit
70470f352d
|
@ -129,7 +129,7 @@
|
|||
"taskReferenceName": "build_add_policy_tasks",
|
||||
"type": "LAMBDA",
|
||||
"inputParameters": {
|
||||
"role" : "${workflow.input.role}"
|
||||
"role" : "${workflow.input.role}",
|
||||
"roles" : "${join_parallel_getting_back.output[*].body}",
|
||||
"vres" : "${get_all_vres.output.body}",
|
||||
"scriptExpression": "for(var i=0;i<$.vres.length;i++)vre=$.vres[i],tasks.push({name:'pyrest',type:'SIMPLE',taskReferenceName:'create_role_policy'}),inputs['create_role_policy_']={url:'${init.input.keycloak_admin}/clients/' + vre.id + '/authz/resource-server/policy/role',body:{name:$.role +'_policy',description:'',type:'role',logic:'POSITIVE',decisionStrategy:'UNANIMOUS',roles:[{id:${$.roles[i].id},required:true}]},method:'POST',headers:{Authorization:'Basic ${init.input.liferay_auth}',Accept:'application/json'}};return {tasks:Java.to(tasks,'java.util.Map[]'),inputs:inputs};"
|
||||
|
|
Loading…
Reference in New Issue