fixed query to extract correct infrastructure id
This commit is contained in:
parent
5b308bf8cd
commit
94c9eeeda7
|
@ -70,7 +70,7 @@
|
|||
"taskReferenceName" : "extract_infrastructure_id",
|
||||
"type" : "SIMPLE",
|
||||
"inputParameters" : {
|
||||
"code" : "exec('import xml.etree.ElementTree as ET') or list(map(lambda n: n.text, ET.fromstring(data['xmlstring']).findall('Resource/Profile/[SecondaryType=\\'INFRASTRUCTURE\\'][Name=\\'VirtualOrganisation\\']/../ID')))",
|
||||
"code" : "exec('import xml.etree.ElementTree as ET') or list(map(lambda n: n.text, ET.fromstring(data['xmlstring']).findall('Resource/Profile/Body/infrastructures/infrastructure/vos/vo[scope=\\'${init.output.result.decoded_root_vo}/${init.output.result.parent}\\'].id')))",
|
||||
"xmlstring" : "${retrieve_infrastructure.output.body}"
|
||||
}
|
||||
}
|
||||
|
@ -143,8 +143,8 @@
|
|||
"method": "PUT",
|
||||
"headers": {
|
||||
"Authorization": "Bearer ${authorize_uma_rootvo.output.body.access_token}",
|
||||
"Accept": "application/json",
|
||||
"Content-Type": "application/json"
|
||||
"Content-Type": "application/json",
|
||||
"Accept" : "application/json"
|
||||
},
|
||||
"body": {
|
||||
"type": "Context",
|
||||
|
|
Loading…
Reference in New Issue