diff options
author | Patrick Schaumburg <pschaumburg@tecracer.de> | 2020-03-18 15:21:48 +0100 |
---|---|---|
committer | Patrick Schaumburg <pschaumburg@tecracer.de> | 2020-03-18 15:21:48 +0100 |
commit | 1b0f23f759da51a4b31ed761b83af73795967d50 (patch) | |
tree | dbba3f839ce5b1257f2a98f637b9142c15cd8a9d /lib/chef | |
parent | 9a5b00b7090d71744d02a18c74421bc9df2c7ed1 (diff) | |
download | chef-1b0f23f759da51a4b31ed761b83af73795967d50.tar.gz |
update to latest version of file
Signed-off-by: Patrick Schaumburg <pschaumburg@tecracer.de>
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/resource/windows_firewall_rule.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/chef/resource/windows_firewall_rule.rb b/lib/chef/resource/windows_firewall_rule.rb index 4a051db2bf..42b3c031f6 100644 --- a/lib/chef/resource/windows_firewall_rule.rb +++ b/lib/chef/resource/windows_firewall_rule.rb @@ -39,7 +39,7 @@ class Chef property :group, String, description: "Specifies that only matching firewall rules of the indicated group association are copied.", - introduced: "15.2" + introduced: "15.9" property :local_address, String, description: "The local address the firewall rule applies to." @@ -129,11 +129,11 @@ class Chef description "Create a Windows firewall entry." if current_resource - converge_if_changed :rule_name, :local_address, :local_port, :remote_address, :remote_port, :description, - :direction, :protocol, :firewall_action, :profile, :program, :service, :interface_type, :enabled do - cmd = firewall_command("Set") - powershell_out!(cmd) - end + converge_if_changed :rule_name, :local_address, :local_port, :remote_address, :remote_port, :direction, + :protocol, :firewall_action, :profile, :program, :service, :interface_type, :enabled do + cmd = firewall_command("Set") + powershell_out!(cmd) + end converge_if_changed :group do powershell_out!("Remove-NetFirewallRule -Name '#{new_resource.rule_name}'") cmd = firewall_command("New") |