summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPatrick Schaumburg <pschaumburg@tecracer.de>2020-03-30 16:18:39 +0200
committerPatrick Schaumburg <pschaumburg@tecracer.de>2020-03-30 16:18:39 +0200
commit9a0a642fdcb32306a7e4cd0d7895b1ff116c665e (patch)
tree6e59ec04bd4f3eb59fed9a514fb14ae14528ce86 /lib
parent0bdeca2ea7d7108db6418c597f5c379da6eba7e8 (diff)
downloadchef-9a0a642fdcb32306a7e4cd0d7895b1ff116c665e.tar.gz
add some more tests
Signed-off-by: Patrick Schaumburg <pschaumburg@tecracer.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/resource/windows_firewall_rule.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/chef/resource/windows_firewall_rule.rb b/lib/chef/resource/windows_firewall_rule.rb
index dcdec77395..fcc373c7cb 100644
--- a/lib/chef/resource/windows_firewall_rule.rb
+++ b/lib/chef/resource/windows_firewall_rule.rb
@@ -251,7 +251,6 @@ class Chef
elsif icmp_type.is_a?(String)
return false if !protocol.start_with?("ICMP") && icmp_type !~ /^\D+$/
-
return false if icmp_type.count("a-zA-Z") > 0 && icmp_type.count(":") > 1
if protocol.start_with?("ICMP") && icmp_type.include?(":")