File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
lib/puppet/parser/functions
spec/unit/puppet/provider/file_line Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ module Puppet::Parser::Functions
2222 require 'yaml'
2323
2424 begin
25- YAML . load ( arguments [ 0 ] ) || arguments [ 1 ] # rubocop:disable Security/YAMLLoad : using YAML.safe_load causes the code to break
25+ YAML . load ( arguments [ 0 ] ) || arguments [ 1 ] # : using YAML.safe_load causes the code to break
2626 # in ruby 1.9.3 Psych::SyntaxError is a RuntimeException
2727 # this still needs to catch that and work also on rubies that
2828 # do not have Psych available.
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ module Puppet::Parser::Functions
6767 # Check for syntax
6868 lens = args [ 1 ]
6969 aug . transform (
70- lens : lens ,
70+ lens :,
7171 name : 'Validate_augeas' ,
7272 incl : tmpfile . path ,
7373 )
Original file line number Diff line number Diff line change 172172 name : 'foo' ,
173173 path : tmpfile ,
174174 line : 'inserted = line' ,
175- after : after ,
176- match : match ,
175+ after :,
176+ match :,
177177 )
178178 end
179179 end
You can’t perform that action at this time.
0 commit comments