Skip to content

Commit 8f39087

Browse files
authored
Fix typo in ssvm check script (#8191)
1 parent 3c7c75b commit 8f39087

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

systemvm/agent/scripts/ssvm-check.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
@@ -118,7 +118,7 @@ else
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"

0 commit comments

Comments
 (0)