Skip to content

Commit

Permalink
Merge pull request #142 from hectcastro/missing_db_endpoint_port
Browse files Browse the repository at this point in the history
Fix output of aws_db_instance port via endpoint
  • Loading branch information
pearkes committed Aug 1, 2014
2 parents b2cff86 + f869a07 commit cc31db0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/providers/aws/resource_aws_db_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func resource_aws_db_instance_update_state(
s.Attributes["availability_zone"] = v.AvailabilityZone
s.Attributes["backup_retention_period"] = strconv.Itoa(v.BackupRetentionPeriod)
s.Attributes["backup_window"] = v.PreferredBackupWindow
s.Attributes["endpoint"] = fmt.Sprintf("%s:%s", s.Attributes["address"], s.Attributes["port"])
s.Attributes["endpoint"] = fmt.Sprintf("%s:%s", s.Attributes["address"], strconv.Itoa(v.Port))
s.Attributes["engine"] = v.Engine
s.Attributes["engine_version"] = v.EngineVersion
s.Attributes["instance_class"] = v.DBInstanceClass
Expand Down

0 comments on commit cc31db0

Please sign in to comment.