(#13289) Fix some more style violations
[puppet-modules/puppetlabs-apt.git] / manifests / init.pp
index 1a5c7e0c653e3c49b5a9c653581efea8ad6196ef..29db697c14c104ef3963de0141586a9e3ec66582 100644 (file)
@@ -41,16 +41,17 @@ class apt(
     package { 'python-software-properties': }
   }
 
+  $sources_list_content = $purge_sources_list ? {
+    false =>  undef,
+    true  => "# Repos managed by puppet.\n",
+  }
   file { 'sources.list':
     ensure  => present,
     path    => "${apt::params::root}/sources.list",
     owner   => root,
     group   => root,
     mode    => '0644',
-    content => $purge_sources_list ? {
-      false =>  undef,
-      true  => "# Repos managed by puppet.\n",
-    },
+    content => $sources_list_content,
   }
 
   file { 'sources.list.d':