~ubuntu-branches/ubuntu/lucid/eucalyptus/lucid-proposed

« back to all changes in this revision

Viewing changes to tools/euca_conf.in

  • Committer: Bazaar Package Importer
  • Author(s): Dustin Kirkland, Scott Moser
  • Date: 2010-03-30 11:23:58 UTC
  • Revision ID: james.westby@ubuntu.com-20100330112358-z1kqru9yckoe141m
Tags: 1.6.2-0ubuntu27
[ Scott Moser ]
tools/euca_conf.in: fix regression in node deregistration,
LP: #551650

Show diffs side-by-side

added added

removed removed

Lines of Context:
373
373
}
374
374
 
375
375
xsearch() {
376
 
        local needle=${1}
377
 
        local haystack=" ${2} "
 
376
        local needle="$1" i="" haystack=" "
 
377
        shift
 
378
        for i in "$@"; do
 
379
                haystack="${haystack}$(printf "%s" "$i" | tr '\n' ' ') "
 
380
        done
 
381
        echo "haystack=${haystack}"
378
382
        [ "${haystack#* ${needle} }" != "${haystack}" ]
379
383
}
380
384