Fix "E: Unable to locate package -y"
[puppet-modules/puppetlabs-apt.git] / tasks / init.rb
index d256468b64a739fdaa6446f49b1d5069bc46891d..ebcf72adddee590f91516a756b07aadeccb16857 100755 (executable)
@@ -5,7 +5,7 @@ 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
   { status: stdout.strip }