Permalink
Browse files

Environment

	* you can now get the required database settings by specifying the
database instance name.
  • Loading branch information...
1 parent a1efeee commit 1f8797a6940100e408fd951b33309fcb134f6e96 @aspcloud committed Apr 29, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/org/aspcloud/engine/extras/Cloudfoundry/Environment.java
@@ -49,10 +49,10 @@ public DatabaseData DatabaseDataForService(String serviceName) throws AspExcepti
JSONObject creds = null;
Iterator itr = mysql.iterator();
while (itr.hasNext()) {
- JSONObject element = ((JSONObject)itr.next()).getJSONObject("credentials");
+ JSONObject element = ((JSONObject)itr.next());
if (element.getString("name").toLowerCase().equals(serviceName.toLowerCase()))
{
- creds = element;
+ creds = element.getJSONObject("credentials");
break;
}
}

0 comments on commit 1f8797a

Please sign in to comment.