Skip to content
Permalink
Browse files
Quote jdbc string format templates
Ampersand (&) in format wasn't being parsed properly.
  • Loading branch information
kemitix committed Aug 24, 2018
1 parent e8274fd commit 845339d8cd4398aaa0f8463c52a1835071899c03
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
@@ -12,7 +12,7 @@ services:
java.sysprops:
brooklyn.example.db.url:
$brooklyn:formatString:
- jdbc:%s%s?user=%s\\&password=%s
- "jdbc:%s%s?user=%s&password=%s"
- $brooklyn:component("db").attributeWhenReady("datastore.url")
- visitors
- brooklyn
@@ -8,7 +8,7 @@ services:
java.sysprops:
brooklyn.example.db.url:
$brooklyn:formatString:
- jdbc:%s%s?user=%s\\&password=%s
- "jdbc:%s%s?user=%s&password=%s"
- $brooklyn:component("db").attributeWhenReady("datastore.url")
- visitors
- brooklyn
@@ -8,7 +8,7 @@ services:
java.sysprops:
brooklyn.example.db.url:
$brooklyn:formatString:
- jdbc:%s%s?user=%s\\&password=%s
- "jdbc:%s%s?user=%s&password=%s"
- $brooklyn:component("db").attributeWhenReady("datastore.url")
- visitors
- brooklyn
@@ -12,7 +12,7 @@ services:
java.sysprops:
brooklyn.example.db.url:
$brooklyn:formatString:
- jdbc:%s%s?user=%s\\&password=%s
- "jdbc:%s%s?user=%s&password=%s"
- $brooklyn:component("db").attributeWhenReady("datastore.url")
- visitors
- brooklyn
@@ -31,7 +31,7 @@ services:
java.sysprops:
brooklyn.example.db.url:
$brooklyn:formatString:
- jdbc:postgresql://%s/myappdb?user=%s\\&password=%s
- "jdbc:postgresql://%s/myappdb?user=%s&password=%s"
- $brooklyn:external("servers", "postgresql")
- $brooklyn:external("credentials", "postgresql-user")
- $brooklyn:external("credentials", "postgresql-password")

0 comments on commit 845339d

Please sign in to comment.