Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Commit

Permalink
REBASE ME
Browse files Browse the repository at this point in the history
  • Loading branch information
petems committed May 12, 2015
1 parent f208cf2 commit 67cf906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/rds_instance/v2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def self.db_instance_to_hash(region, instance)
db_parameter_group_name: instance.db_parameter_groups.collect(&:db_parameter_group_name).first,
db_security_groups: instance.db_security_groups.collect(&:db_security_group_name),
}
if instance.respond_to?('endpoint')
if instance.respond_to?('endpoint') && !instance.endpoint.nil?
config[:endpoint] = instance.endpoint.address
config[:port] = instance.endpoint.port
end
Expand Down

0 comments on commit 67cf906

Please sign in to comment.