Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Release prep v9.1.0
[puppet-modules/puppetlabs-apt.git]
/
tasks
/
init.rb
diff --git
a/tasks/init.rb
b/tasks/init.rb
index 86367d939629d02686d88297012026f491ff86fa..ee141cdb691dcc8dd5513b50f3cabb8f0dbffdd1 100755
(executable)
--- a/
tasks/init.rb
+++ b/
tasks/init.rb
@@
-17,10
+17,11
@@
def apt_get(action)
end
stdout, stderr, status = Open3.capture3(*cmd)
raise Puppet::Error, stderr if status != 0
+
{ status: stdout.strip }
end
-params = JSON.parse(
STDIN
.read)
+params = JSON.parse(
$stdin
.read)
action = params['action']
begin