Hi,

I'm using the Ant interface to STAF so I can use the ResPool service.  I
have a for loop like this:

                <for list="${tests.found}" delimiter=":" param="file"
                     parallel="yes" keepgoing="yes" threadCount="1">
                    <sequential>
                        <staf location="local"
                              service="respool"
                              request="request pool ipaddrs garbagecollect
no"
                              resultPrefix="getpool"
                              throwBuildException="1"/>
                        <echo>passing: ${getpool.result}</echo>
                        <runscript script-dir="${dir}"
                              script-name="@{file}"
                              script-ip-address="${getpool.result}"/>
                    </sequential>
                </for>


I noticed that the value in ${getpool.result} didn't seem to change, so I
added the "<echo>" (above).  The output looks like this:
     [staf] RC=0, Result=192.168.0.206
     [echo] passing: 192.168.0.207


It turns out that staf is returning the correct value (192.168.0.20*6*), but
that I cannot access it by using the result var.  When I try to access the
var myself, a previous value (192.168.0.20*7*) is still set.

Anyone see this before, or have a work-around to suggest? :)

-- 

Tks,
-T
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to