Merge pull request #26790 from rmmh/bash-range
Automatic merge from submit-queue Use bash ranges "{1..3}" instead of "$(seq 1 3)". []() <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.kubernetes.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/26790) <!-- Reviewable:end -->
This commit is contained in:
@@ -1547,7 +1547,7 @@ function ssh-to-node {
|
||||
|
||||
local ip=$(get_ssh_hostname ${node})
|
||||
|
||||
for try in $(seq 1 5); do
|
||||
for try in {1..5}; do
|
||||
if ssh -oLogLevel=quiet -oConnectTimeout=30 -oStrictHostKeyChecking=no -i "${AWS_SSH_KEY}" ${SSH_USER}@${ip} "echo test > /dev/null"; then
|
||||
break
|
||||
fi
|
||||
|
@@ -1533,7 +1533,7 @@ function ssh-to-node {
|
||||
local node="$1"
|
||||
local cmd="$2"
|
||||
# Loop until we can successfully ssh into the box
|
||||
for try in $(seq 1 5); do
|
||||
for try in {1..5}; do
|
||||
if gcloud compute ssh --ssh-flag="-o LogLevel=quiet" --ssh-flag="-o ConnectTimeout=30" --project "${PROJECT}" --zone="${ZONE}" "${node}" --command "echo test > /dev/null"; then
|
||||
break
|
||||
fi
|
||||
|
@@ -339,7 +339,7 @@ function ssh-to-node() {
|
||||
local node="$1"
|
||||
local cmd="$2"
|
||||
# Loop until we can successfully ssh into the box
|
||||
for try in $(seq 1 5); do
|
||||
for try in {1..5}; do
|
||||
if gcloud compute ssh --ssh-flag="-o LogLevel=quiet" --ssh-flag="-o ConnectTimeout=30" --project "${PROJECT}" --zone="${ZONE}" "${node}" --command "echo test > /dev/null"; then
|
||||
break
|
||||
fi
|
||||
|
@@ -284,7 +284,7 @@ function pc-create-vm {
|
||||
|
||||
# Wait for the VM to be started and connected to the network
|
||||
have_network=0
|
||||
for i in $(seq 120); do
|
||||
for i in {1..120}; do
|
||||
# photon -n vm networks print several fields:
|
||||
# NETWORK MAC IP GATEWAY CONNECTED?
|
||||
# We wait until CONNECTED is True
|
||||
|
Reference in New Issue
Block a user