File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,10 @@ else
103103 echo " Verifying if we can at least ping the storage"
104104 STORAGE_ADDRESSES=` grep " secondaryStorageServerAddress" $CMDLINE | sed -E ' s/.*secondaryStorageServerAddress=([^ ]*).*/\1/g' `
105105
106- if [[ -z " $STORAGE_ADDRESS " ]]
106+ if [[ -z " $STORAGE_ADDRESSES " ]]
107107 then
108108 STORAGE_NETWORK_GATEWAY=` grep " storagegateway" $CMDLINE | sed -E ' s/.*storagegateway=([^ ]*).*/\1/g' `
109- echo " Storage address is empty, trying to ping storage network gateway instead ($STORAGE_NETWORK_GATEWAY )"
109+ echo " Storage address list is empty, trying to ping storage network gateway instead ($STORAGE_NETWORK_GATEWAY )"
110110 ping -c 2 $STORAGE_NETWORK_GATEWAY
111111 if [ $? -eq 0 ]
112112 then
118118 fi
119119 else
120120 echo " Storage address(s): $STORAGE_ADDRESSES , trying to ping"
121- STORAGE_ADDRESS_LIST=$( echo $STORAGE_ADDRESSES | tr " ," )
121+ STORAGE_ADDRESS_LIST=$( echo $STORAGE_ADDRESSES | tr " ," " \n " )
122122 for STORAGE_ADDRESS in $STORAGE_ADDRESS_LIST
123123 do
124124 echo " Pinging storage address: $STORAGE_ADDRESS "
You can’t perform that action at this time.
0 commit comments