Skip to content

Commit

Permalink
Merge pull request #40 from remind101/fix_internal_hostname_output
Browse files Browse the repository at this point in the history
Internal hostname output conditional now
  • Loading branch information
phobologic committed Jul 16, 2015
2 parents 9a73068 + cb4b1ca commit 4659055
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion stacker/blueprints/postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ def create_rds(self):
ResourceRecords=[endpoint],
Condition="CreateInternalHostname"))
t.add_output(Output('DBAddress', Value=endpoint))
t.add_output(Output('DBCname', Value=Ref("%sDnsRecord" % db_name)))
t.add_output(
Output(
'DBCname',
Condition="CreateInternalHostname",
Value=Ref("%sDnsRecord" % db_name)))

def create_template(self):
self.create_conditions()
Expand Down

0 comments on commit 4659055

Please sign in to comment.