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
22
22
require 'yaml'
23
23
24
24
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
26
26
# in ruby 1.9.3 Psych::SyntaxError is a RuntimeException
27
27
# this still needs to catch that and work also on rubies that
28
28
# do not have Psych available.
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ module Puppet::Parser::Functions
67
67
# Check for syntax
68
68
lens = args [ 1 ]
69
69
aug . transform (
70
- lens : lens ,
70
+ lens :,
71
71
name : 'Validate_augeas' ,
72
72
incl : tmpfile . path ,
73
73
)
Original file line number Diff line number Diff line change 172
172
name : 'foo' ,
173
173
path : tmpfile ,
174
174
line : 'inserted = line' ,
175
- after : after ,
176
- match : match ,
175
+ after :,
176
+ match :,
177
177
)
178
178
end
179
179
end
You can’t perform that action at this time.
0 commit comments