From 787af01bddbaace8f83c65c273da6a62a9658a06 Mon Sep 17 00:00:00 2001
From: Jesse Andrews <anotherjesse@gmail.com>
Date: Tue, 1 Nov 2011 16:44:19 -0700
Subject: [PATCH] fix sourcing of openrc

---
 exercises/euca.sh         | 2 ++
 exercises/floating_ips.sh | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/exercises/euca.sh b/exercises/euca.sh
index fc81af8f6f..0cb5feaf61 100755
--- a/exercises/euca.sh
+++ b/exercises/euca.sh
@@ -17,7 +17,9 @@ set -o xtrace
 # ========
 
 # Use openrc + stackrc + localrc for settings
+pushd $(cd $(dirname "$0")/.. && pwd)
 source ./openrc
+popd
 
 # Max time till the vm is bootable
 BOOT_TIMEOUT=${BOOT_TIMEOUT:-15}
diff --git a/exercises/floating_ips.sh b/exercises/floating_ips.sh
index 06a2cd4a2d..edf784c5e2 100755
--- a/exercises/floating_ips.sh
+++ b/exercises/floating_ips.sh
@@ -20,7 +20,9 @@ set -o xtrace
 # ========
 
 # Use openrc + stackrc + localrc for settings
+pushd $(cd $(dirname "$0")/.. && pwd)
 source ./openrc
+popd
 
 # Get a token for clients that don't support service catalog
 # ==========================================================