Skip to content

Commit

Permalink
Merge pull request #293 from ruicovelo/master
Browse files Browse the repository at this point in the history
Separating assignments to code_script and guard_script as they should…
  • Loading branch information
mwrock committed Nov 17, 2015
2 parents 3a110e5 + c7ac358 commit e7dfa42
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions providers/certificate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ def whyrun_supported?
action :acl_add do
if ::File.exist?(new_resource.source)
hash = '$cert.GetCertHashString()'
code_script = guard_script = cert_script(false)
code_script = cert_script(false)
guard_script = cert_script(false)
else
# make sure we have no spaces in the hash string
hash = "\"#{new_resource.source.gsub(/\s/, '')}\""
code_script = guard_script = ''
code_script = ''
guard_script = ''
end
code_script << acl_script(hash)
guard_script << cert_exists_script(hash)
Expand Down

0 comments on commit e7dfa42

Please sign in to comment.