X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=tasks%2Finit.rb;h=b4cb0dc7622744be6334972eeb720ae1d89faf08;hb=17b9a4481378fb50b5c3745824ae07ddbdd8e3fa;hp=d256468b64a739fdaa6446f49b1d5069bc46891d;hpb=f55a60fbec802c34afdf247d968be6f60684f5a9;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/tasks/init.rb b/tasks/init.rb index d256468..b4cb0dc 100755 --- a/tasks/init.rb +++ b/tasks/init.rb @@ -5,9 +5,9 @@ require 'puppet' def apt_get(action) cmd = ['apt-get', action] - cmd << ' -y' if action == 'upgrade' + cmd << '-y' if action == 'upgrade' stdout, stderr, status = Open3.capture3(*cmd) - raise Puppet::Error, stderr if status != 0 + raise Puppet::Error, stderr if status != 0 # rubocop:disable GetText/DecorateFunctionMessage { status: stdout.strip } end