summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-01-08 14:34:20 +0000
committerSteve Kemp <steve@steve.org.uk>2015-01-08 14:34:20 +0000
commitcca7533cfd2dc834858a7c277fb8877982b9c8ea (patch)
tree2d59e1f5e99463c9f29aa6393b267ed84f1cbadc
parent482a27a7cbf34054999c35c47d3189fad50db9d6 (diff)
Simplified error messages for DNS failures.
We show the result we expected and what we received, but we do so with quoted strings. So rather than: * one * two we show "one,two". This closes #8538.
-rw-r--r--lib/custodian/protocoltest/dns.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/custodian/protocoltest/dns.rb b/lib/custodian/protocoltest/dns.rb
index b4506e0..7187a75 100644
--- a/lib/custodian/protocoltest/dns.rb
+++ b/lib/custodian/protocoltest/dns.rb
@@ -115,7 +115,7 @@ module Custodian
#
if ( !(results - @resolve_expected).empty? or !(@resolve_expected - results).empty? )
- @error = "DNS server *#{@host}* (#{@server_ip}) returned the wrong records for @#{resolve_name} IN #{resolve_type}@.\n\nWe expected:\n * #{resolve_expected.join("\n * ")}\n\nWe got:\n * #{results.join("\n * ")}\n"
+ @error = "DNS server *#{@host}* (#{@server_ip}) returned the wrong records for @#{resolve_name} IN #{resolve_type}@.\n\nWe expected '#{resolve_expected.join(",")}', but we received '#{results.join(",")}'\n"
end
return @error.nil?