diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2017-12-31 19:35:17 +0100 |
---|---|---|
committer | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2018-01-07 04:04:36 +0100 |
commit | 3f559299c232bbb7639d02243c95d6256cdf94d4 (patch) | |
tree | 57e4c95ba2c637bf139dcbc7be523b71756acf02 /mcp/config/states/maas | |
parent | fac41836e91dd56696c3a435bfdbc7adf53899e2 (diff) |
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>
Diffstat (limited to 'mcp/config/states/maas')
-rwxr-xr-x | mcp/config/states/maas | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcp/config/states/maas b/mcp/config/states/maas index 02afd2c6a..8f7a86611 100755 --- a/mcp/config/states/maas +++ b/mcp/config/states/maas @@ -101,4 +101,4 @@ while [ $rc -ne 0 ] && [ ${attempt} -lt ${total_attempts} ]; do ((attempt+=1)) done -wait_for 10 "salt -C '* and not cfg01* and not mas01*' saltutil.sync_all" +wait_for 10.0 "salt -C '* and not cfg01* and not mas01*' saltutil.sync_all" |