Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
retest
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfrancis committed Feb 12, 2018
1 parent 35ff3f5 commit 779aab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parts/k8s/kubernetesmastercustomdata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ coreos:
ExecStart=/opt/azure/containers/provision-setup.sh
{{else}}
runcmd:
# the first arg is the number of retries, the second arg is the wait duration between two retries and the rest of the args are the cmd to run retest
# the first arg is the number of retries, the second arg is the wait duration between two retries and the rest of the args are the cmd to run
- set -x
- retrycmd_if_failure() { retries=$1; wait=$2; shift && shift; for i in $(seq 1 $retries); do ${@}; [ $? -eq 0 ] && break || sleep $wait; done; echo Executed \"$@\" $i times; }
- retrycmd_if_failure_no_stats() { retries=$1; wait=$2; shift && shift; for i in $(seq 1 $retries); do ${@}; [ $? -eq 0 ] && break || sleep $wait; done; }
Expand Down

0 comments on commit 779aab2

Please sign in to comment.