You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2012/10/11 21:50:56 UTC

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

Updated Branches:
  refs/heads/master 44996d461 -> 77ba46e32


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


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/77ba46e3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/77ba46e3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/77ba46e3

Branch: refs/heads/master
Commit: 77ba46e322babca11132a7d4d7d5248802f2f2bd
Parents: 44996d4
Author: Ilya Musayev, CloudSand.com <il...@cloudsand.com>
Authored: Fri Oct 12 01:18:16 2012 +0530
Committer: Rohit Yadav <bh...@apache.org>
Committed: Fri Oct 12 01:20:15 2012 +0530

----------------------------------------------------------------------
 setup/bindir/cloud-set-guest-password.in |    2 +-
 setup/bindir/cloud-set-guest-sshkey.in   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/77ba46e3/setup/bindir/cloud-set-guest-password.in
----------------------------------------------------------------------
diff --git a/setup/bindir/cloud-set-guest-password.in b/setup/bindir/cloud-set-guest-password.in
index 97e6e3d..69be175 100755
--- a/setup/bindir/cloud-set-guest-password.in
+++ b/setup/bindir/cloud-set-guest-password.in
@@ -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"

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/77ba46e3/setup/bindir/cloud-set-guest-sshkey.in
----------------------------------------------------------------------
diff --git a/setup/bindir/cloud-set-guest-sshkey.in b/setup/bindir/cloud-set-guest-sshkey.in
index 69124dc..15008b8 100755
--- a/setup/bindir/cloud-set-guest-sshkey.in
+++ b/setup/bindir/cloud-set-guest-sshkey.in
@@ -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"