Hi @philippe-camelio_3885 ,
We tried to reproduce this in the latest version of Otter, but are not having any luck :(
Here is my Job Template; note that you can get the JSON for job template under Admin > Raft Repositories > Browse.
{
"Description": "",
"JobConfiguration": {
"ScriptId": "Default::Script::z-z-test/test-hello.otter",
"ServerTargeting": 1,
"ServerNames": [
"LOCALHOST"
],
"ServerRoleNames": [],
"EnvironmentNames": [],
"Variables": {},
"Arguments": ""
},
"TemplateUsage": 1,
"JobVariables": [
{
"Name": "params",
"Description": "",
"InitialValue": "%(env:item1)",
"Type": "List",
"Usage": "Input",
"ListValues": [
"%(env:item1)",
"%(env:item2)",
"%(env:item3)"
],
"ListRestrict": true
}
]
}
Here is my OtterScript. I wanted to verfify that env
would be written, which it was.
foreach $i in @MapKeys(%params)
{
Log-Debug Hello $i;
}
It's possible it was fixed by something else since the version you used, but I don't know.
Might be worth upgrading; if you still have the issue, can you send your JSON of the Job TEmplate?
Thanks,
Alana