From 1017adbe786f5aa8434ec7e34a0650a1575bf652 Mon Sep 17 00:00:00 2001 From: Thomas Wiest Date: Thu, 23 Oct 2014 16:45:19 -0400 Subject: minor cleanup --- lib/aws_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/aws_helper.rb') 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 -- cgit v1.2.3