summaryrefslogtreecommitdiffstats
path: root/lib/aws_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/aws_helper.rb')
-rw-r--r--lib/aws_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/aws_helper.rb b/lib/aws_helper.rb
index 053f5267e..8af39c834 100644
--- a/lib/aws_helper.rb
+++ b/lib/aws_helper.rb
@@ -37,7 +37,8 @@ module OpenShift
hosts = get_list()
dns_names = hosts["tag_Name_#{host}"]
- raise "Error: host not found [#{host}]" if dns_names.nil?
+ raise "Host not found [#{host}]" if dns_names.nil?
+ raise "Multiple entries found for [#{host}]" if dns_names.size > 1
return hosts['_meta']['hostvars'][dns_names.first]
end