Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Commit

Permalink
Fixed bug in getvmip() to return only 1 IP
Browse files Browse the repository at this point in the history
  • Loading branch information
Khalid Ahmed committed Oct 10, 2012
1 parent 6c200b5 commit 6b5c40d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/svccontroller.sh
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -x
# -------------------------------------------------------------------------- #
# Copyright 2002-2012, Research In Motion Limited #
# #
Expand All @@ -22,7 +22,7 @@ getsvcid() {

getvmip() {
if [[ $USE_DDNS == "FALSE" ]]; then
IP=`onecmd -e $ENDPOINT onevm show $1 | grep IP | tr '=' ' ' | tr ',' ' ' | awk 'NR>1 {print $2}'`
IP=`onecmd -e $ENDPOINT onevm show $1 | grep IP | tr '=' ' ' | tr ',' ' ' | awk 'END {print $2}'`
echo $IP
return
fi
Expand Down

0 comments on commit 6b5c40d

Please sign in to comment.