Skip to content

Commit

Permalink
Remove pol_file if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
raphink committed May 4, 2018
1 parent e865364 commit dade060
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 @@ -168,7 +168,7 @@ def set_value(val)

if setting_valuetype == '[HASHTABLE]'
pol_file = "C:\\Windows\\System32\\GroupPolicy\\#{scope.capitalize}\\Registry.pol"
File.delete(pol_file)
File.delete(pol_file) if File.file?(pol_file)
end

import_pol(out_polfile_path, scope, guid)
Expand Down

0 comments on commit dade060

Please sign in to comment.