]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
(MODULES-8547) Fix existing rules with --dport not parsing
authorEimhin Laverty <eimhin.laverty@puppet.com>
Wed, 20 Mar 2019 16:34:11 +0000 (16:34 +0000)
committerEimhin Laverty <eimhin.laverty@puppet.com>
Wed, 20 Mar 2019 16:34:17 +0000 (16:34 +0000)
lib/puppet/provider/firewall/iptables.rb

index ce01c282742511e243934400fd272e35ed530b0b..f2951a7dce9ae0bd0cc709a58a946821ee782f72 100644 (file)
@@ -129,7 +129,7 @@ Puppet::Type.type(:firewall).provide :iptables, parent: Puppet::Provider::Firewa
     string_from: '--from',
     string_to: '--to',
     table: '-t',
-    tcp_flags: '-m tcp --tcp-flags',
+    tcp_flags: ['-m tcp --tcp-flags', '--tcp-flags'],
     todest: '--to-destination',
     toports: '--to-ports',
     tosource: '--to-source',