Finish migrating wait_for into a shell script.
Finish migrating wait_for into a shell script.

A function version was left behind by the earlier commit.

Change-Id: I3afbf0e22fc8c30dfeddc2293713a7a8bfe36663

rdo-management/tripleo,rdo-management/tripleo