Small patch to fix the spacing that makes lint fail.
[puppet-modules/puppetlabs-apt.git] / manifests / init.pp
index 7964eb7c08a14bac398059777e2964bfa78beaa5..85055c8119101b66b14566201816d749829995cd 100644 (file)
@@ -39,6 +39,10 @@ class apt(
   $sources              = undef
 ) {
 
+  if $::osfamily != 'Debian' {
+    fail('This module only works on Debian or derivatives like Ubuntu')
+  }
+
   include apt::params
   include apt::update
 
@@ -147,7 +151,7 @@ Package: bogus-package\n",
 
   # manage sources if present
   if $sources != undef {
-   validate_hash($sources)
-   create_resources('apt::source', $sources)
+    validate_hash($sources)
+    create_resources('apt::source', $sources)
   }
 }