Release version 7.7.1
[puppet-modules/puppetlabs-apt.git] / tasks / init.rb
index f8ca85e2f5d81126a49146e785622ba4551cb0b2..43053128a25dbd1edad4a4f041424df26c17f338 100755 (executable)
@@ -1,4 +1,6 @@
 #!/opt/puppetlabs/puppet/bin/ruby
+# frozen_string_literal: true
+
 require 'json'
 require 'open3'
 require 'puppet'
@@ -7,7 +9,7 @@ def apt_get(action)
   cmd = ['apt-get', action]
   cmd << '-y' if ['upgrade', 'dist-upgrade', 'autoremove'].include?(action)
   stdout, stderr, status = Open3.capture3(*cmd)
-  raise Puppet::Error, stderr if status != 0 # rubocop:disable GetText/DecorateFunctionMessage
+  raise Puppet::Error, stderr if status != 0
   { status: stdout.strip }
 end