container: Re-run failed provisioning even if container is running
- If provision fails and the container is in running state, then running './container up' does not lead to re-run of provisioning script. Fix this.
Tests:
-
Without patch, insert 'exit 1' in provisioning script. Run './container destroy; ./container up'. Provision script will fail. Re-run './container up'. Provision script is not run and message that container is already running is printed.
-
With patch, insert 'exit 1' in provisioning script. Run './container destroy; ./container up'. Provision script will fail. Re-run './container up'. Provision script is not run and message that container is already running is printed.
Signed-off-by: Sunil Mohan Adapa sunil@medhas.org