Skip to content
Browse files

Rackspace updated their auth API to reverse the order of the return p…

…arameters, making RSDNS fail w/o this change...
  • Loading branch information...
1 parent c4c3bd3 commit bc4a738ffc615f70d58ef6c5cf9b85445efa594f @ehagerty ehagerty committed Mar 25, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/auth.sh
View
4 lib/auth.sh
@@ -42,8 +42,8 @@ function get_auth () {
EC=`echo $AUTH|awk -F, '{print $1}'`
if [[ $EC == "204" ]]; then
- TOKEN=`echo $AUTH|awk -F, '{print $2}'`
- MGMTSVR=`echo $AUTH|awk -F, '{print $3}'`
+ TOKEN=`echo $AUTH|awk -F, '{print $3}'`
+ MGMTSVR=`echo $AUTH|awk -F, '{print $2}'`
if [[ ! -n $USERID ]]; then
USERID=`echo $MGMTSVR | awk -F "/" '{print $5}'`
fi

0 comments on commit bc4a738

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