diff options
Diffstat (limited to 'lib/puppet/provider/vpp_config')
-rw-r--r-- | lib/puppet/provider/vpp_config/vpp.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/provider/vpp_config/vpp.rb b/lib/puppet/provider/vpp_config/vpp.rb index 2574d4c..eb49fe3 100644 --- a/lib/puppet/provider/vpp_config/vpp.rb +++ b/lib/puppet/provider/vpp_config/vpp.rb @@ -36,7 +36,7 @@ Puppet::Type.type(:vpp_config).provide(:vpp) do scanner = StringScanner.new vpp_config #first skip to section beginning - string = scanner.scan_until(/#{@section}\s*{\s*/) + string = scanner.scan_until(/^\s*#{@section}\s*{\s*/) #if we can't find the section, add it to the end return vpp_config+"\n#{@section} {", "", "}\n" unless string |