diff --git a/spec/defines/pin_spec.rb b/spec/defines/pin_spec.rb index 5d3d312..f1ca437 100644 --- a/spec/defines/pin_spec.rb +++ b/spec/defines/pin_spec.rb @@ -61,7 +61,7 @@ describe 'apt::pin', :type => :define do :priority => '1', :origin => 'ftp.de.debian.org' }, - :content => "# my_pin\nExplanation: : my_pin\nPackage: *\nPin: origin \"ftp.de.debian.org\"\nPin-Priority: 1\n" + :content => "# my_pin\nExplanation: : my_pin\nPackage: *\nPin: origin ftp.de.debian.org\nPin-Priority: 1\n" }, { :params => { diff --git a/templates/pin.pref.erb b/templates/pin.pref.erb index 42e23c7..a19e253 100644 --- a/templates/pin.pref.erb +++ b/templates/pin.pref.erb @@ -12,7 +12,7 @@ if @pin_release.length > 0 elsif @version.length > 0 @pin = "version #{@version}" elsif @origin.length > 0 - @pin = "origin \"#{@origin}\"" + @pin = "origin #{@origin}" end -%> # <%= @name %>