Before this change, if there were 3+ hosts in $remaininghosts and one of
the hostnames in the middle finished, sed would remove the hostname and
its trailing space which would mash the last two hostnames together.
```
Example:
remaininghosts="mira071 smithi164 mira001"
remaininghosts=$(echo $remaininghosts | sed -e "s/ *smithi164 *//")
$ echo $remaininghosts
mira071mira001
```
Signed-off-by: David Galloway <dgallowa@redhat.com>
ssh ubuntu@store01.front.sepia.ceph.com "sudo /usr/local/sbin/set-next-server.sh $host fog"
# Prep the host for FOG image capture
ansible-playbook $WORKSPACE/ceph-cm-ansible/tools/prep-fog-capture.yml -e ansible_ssh_user=ubuntu --limit="$host*"
- remaininghosts=$(echo $remaininghosts | sed -e "s/ *$host *//")
+ remaininghosts=${remaininghosts//$host/}
else
# This gets noisy
set +ex