From f207901d5deb9c04ef236d39633a888afef8492f Mon Sep 17 00:00:00 2001 From: Benedikt Trefzer Date: Fri, 15 Mar 2024 15:05:19 +0100 Subject: [PATCH] let pdk validate fix quotes --- lib/puppet/type/libvirt_network.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/puppet/type/libvirt_network.rb b/lib/puppet/type/libvirt_network.rb index 0492e7c..57a0c99 100644 --- a/lib/puppet/type/libvirt_network.rb +++ b/lib/puppet/type/libvirt_network.rb @@ -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