Skip to content

Commit

Permalink
fixed bad error checking in Route53 DNS Zone discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
jstange committed Jan 16, 2016
1 parent 0aefa4a commit 6f4468c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mu/clouds/aws/dnszone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def self.createRecordsFromConfig(cfg, target: nil)
else
zone = MU::Cloud::DNSZone.find(cloud_id: record['zone']['name']).values.first
end
raise MuError, "Failed to locate Route53 DNS Zone for domain #{record['zone']['name']}"
raise MuError, "Failed to locate Route53 DNS Zone for domain #{record['zone']['name']}" if zone.nil?
healthcheck_id = nil
record['target'] = target if !target.nil?
if !record['healthcheck'].nil?
Expand Down

0 comments on commit 6f4468c

Please sign in to comment.