Skip to content

Commit

Permalink
let pdk validate fix quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
trefzer committed Mar 15, 2024
1 parent 1d16e12 commit f207901
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/puppet/type/libvirt_network.rb
Expand Up @@ -48,17 +48,17 @@

def change_to_s(current, desire)
if @resource[:show_diff]
current_exp = Tempfile.new("current", "/tmp").open
current_exp = Tempfile.new('current', '/tmp').open
current_exp.write(current.to_s)
current_exp.close
current_path = current_exp.path
desire_exp = Tempfile.new("desire", "/tmp").open
desire_exp = Tempfile.new('desire', '/tmp').open
desire_exp.write(desire.to_s)
desire_exp.close
desire_path = desire_exp.path
system "diff -u #{current_path} #{desire_path}"
else
'{md5}' + Digest::MD5.hexdigest(current.to_s) + " to: " + '{md5}' + Digest::MD5.hexdigest(desire.to_s)
'{md5}' + Digest::MD5.hexdigest(current.to_s) + ' to: ' + '{md5}' + Digest::MD5.hexdigest(desire.to_s)
end
end

Expand Down

0 comments on commit f207901

Please sign in to comment.