lib.sh: Extend wait_for function to catch no resp 79/50179/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sun, 31 Dec 2017 18:35:17 +0000 (19:35 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sun, 7 Jan 2018 23:43:04 +0000 (00:43 +0100)
commit2b7c862e8c668d8fabc784680b05bec75baff2c6
tree689c0b55659d49b2644672c3f71973b52c9371e4
parentf25c19f7a3f90f2cf11f1352772756dadbe95bcc
lib.sh: Extend wait_for function to catch no resp

wait_for function should be able to also check for minions that did
not return or not respond, in addition to the return code.
To keep it backwards compatible, condition the new check on the max
attempt number being specified in decimal format (e.g. '10.0' unlike
old '10').

Change-Id: If2512cf9121cdd795638efe7362ef0485d4e8d91
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 3f559299c232bbb7639d02243c95d6256cdf94d4)
mcp/config/states/baremetal_init
mcp/config/states/dpdk
mcp/config/states/maas
mcp/config/states/virtual_control_plane
mcp/scripts/lib.sh