Hi all,

I have this piece of code.
I expect the variable "listOfServersContainingVdisks" to be appendend with
all the servername of the paralleliterate according to the last lines of
code.
Instead, I am returned only the last assignment of the paralleliterate
loop, so that it will contain just the elements of the last iteration.

How can I avoid this?

<script>
server=STAXResult
listBDFtoFind={}
global listOfServersContainingVdisks
listOfServersContainingVdisks=[]

</script>
 <paralleliterate var="destinationName" in="allDestinationlistName">
<sequence>
<script>
listBDFtoFind[destinationName]=[]
for index, item in enumerate(server[destinationName]):
if server[destinationName][index]['bdf'] == 'NoNe':
del listBDFtoFind[destinationName]
break
else:
listBDFtoFind[destinationName].append(server[destinationName][index]['bdf'])
listOfServersContainingVdisks.append(destinationName)
</script>
</sequence>
</paralleliterate>
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to