CLOUDSTACK-321: Fixed a bug in cloud-set-guest-*.in

Fixed a bug in cloud-set-guest-sshkey.in to properly check the
SSHKEY_SERVER_IP variable
This commit is contained in:
Ilya Musayev, CloudSand.com 2012-10-12 01:18:16 +05:30 committed by Rohit Yadav
parent 44996d4611
commit 77ba46e322
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ do
file_count=$((file_count+1))
PASSWORD_SERVER_IP=$(grep dhcp-server-identifier $DHCP_FILE | tail -1 | awk '{print $NF}' | tr -d '\;')
if [ -n $PASSWORD_SERVER_IP ]
if [ -n "$PASSWORD_SERVER_IP" ]
then
logger -t "cloud" "Found password server IP $PASSWORD_SERVER_IP in $DHCP_FILE"
logger -t "cloud" "Sending request to password server at $PASSWORD_SERVER_IP"

View File

@ -40,7 +40,7 @@ do
file_count=$((file_count+1))
SSHKEY_SERVER_IP=$(grep dhcp-server-identifier $DHCP_FILE | tail -1 | awk '{print $NF}' | tr -d '\;')
if [ -n $SSHKEY_SERVER_IP ]
if [ -n "$SSHKEY_SERVER_IP" ]
then
logger -t "cloud" "Sending request to ssh key server at $SSHKEY_SERVER_IP"