Skip to content

Commit

Permalink
Remove out_file as it is never used
Browse files Browse the repository at this point in the history
  • Loading branch information
raphink committed May 4, 2018
1 parent ac7020d commit 7ade80b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/gpo/lgpo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def remove_key(key, scope)
return [] unless File.file?(pol_file)
out_file_path = File.join(Puppet[:vardir], 'lgpo_import.txt')
gpos = lgpo('/parse', '/q', "/#{scope[0]}", pol_file)
out_file = File.open(out_file_path, 'a') do |out_file|
File.open(out_file_path, 'a') do |out_file|
gpos.split("\n\n").reject { |l| l.start_with? ';' }.each do |g|
split_g = g.split("\n")
unless split_g[1] == key
Expand Down

0 comments on commit 7ade80b

Please sign in to comment.