mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
44996d4611
commit
77ba46e322
@ -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"
|
||||
|
||||
@ -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"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user