summaryrefslogtreecommitdiff
path: root/lib/custodian/util/ping.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/custodian/util/ping.rb')
-rw-r--r--lib/custodian/util/ping.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/custodian/util/ping.rb b/lib/custodian/util/ping.rb
index 21836ac..f0aa15b 100644
--- a/lib/custodian/util/ping.rb
+++ b/lib/custodian/util/ping.rb
@@ -45,7 +45,7 @@ module Custodian
# Does the hostname resolve to an IPv4 address?
#
def is_ipv4?
- if (! @resolved.nil?) && (@resolved =~ /^([0-9]+).([0-9]+).([0-9]+).([0-9]+)$/)
+ if (!@resolved.nil?) && (@resolved =~ /^([0-9]+).([0-9]+).([0-9]+).([0-9]+)$/)
true
else
false
@@ -57,7 +57,7 @@ module Custodian
# Does the hostname resolve to an IPv6 address?
#
def is_ipv6?
- if (! @resolved.nil?) && (@resolved =~ /^([a-f0-9:]+)$/i)
+ if (!@resolved.nil?) && (@resolved =~ /^([a-f0-9:]+)$/i)
true
else
false