Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed bug in getvmip() to return only 1 IP

  • Loading branch information...
commit 6b5c40d924246191df910d8fb80eb7261533a799 1 parent 6c200b5
Khalid Ahmed authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 bin/svccontroller.sh
4 bin/svccontroller.sh
... ... @@ -1,4 +1,4 @@
1   -#!/bin/bash
  1 +#!/bin/bash -x
2 2 # -------------------------------------------------------------------------- #
3 3 # Copyright 2002-2012, Research In Motion Limited #
4 4 # #
@@ -22,7 +22,7 @@ getsvcid() {
22 22
23 23 getvmip() {
24 24 if [[ $USE_DDNS == "FALSE" ]]; then
25   - IP=`onecmd -e $ENDPOINT onevm show $1 | grep IP | tr '=' ' ' | tr ',' ' ' | awk 'NR>1 {print $2}'`
  25 + IP=`onecmd -e $ENDPOINT onevm show $1 | grep IP | tr '=' ' ' | tr ',' ' ' | awk 'END {print $2}'`
26 26 echo $IP
27 27 return
28 28 fi

0 comments on commit 6b5c40d

Please sign in to comment.
Something went wrong with that request. Please try again.