lib.sh: Extend wait_for function to catch no resp 51/50151/2
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 03:04:36 +0000 (04:04 +0100)
commit3f559299c232bbb7639d02243c95d6256cdf94d4
tree57e4c95ba2c637bf139dcbc7be523b71756acf02
parentfac41836e91dd56696c3a435bfdbc7adf53899e2
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>
mcp/config/states/baremetal_init
mcp/config/states/dpdk
mcp/config/states/maas
mcp/config/states/virtual_control_plane
mcp/scripts/lib.sh