initial commit for gpg key checking
[puppet-modules/puppetlabs-apt.git] / lib / puppet / type / apt_key.rb
index 70825ac218c5bb286dc04219145eecf442803094..7130496ea9e55dafaf4e3386a59c7645ffa601dd 100644 (file)
@@ -23,6 +23,9 @@ Puppet::Type.newtype(:apt_key) do
     if self[:content] and self[:source]
       fail('The properties content and source are mutually exclusive.')
     end
+    if self[:id].length < 40 
+      warning('The id should be a full fingerprint (40 characters), see README.')
+    end 
   end
 
   newparam(:id, :namevar => true) do