mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-06 07:04:45 +09:00
F OpenNebula/one#6242: stdin for update methods (#2717)
This commit is contained in:
1 parent
d57ff44ff5
commit
6de9e4e8bb
1 file changed
+2
@@ -1648,6 +1648,8 @@ Bash symbols must be escaped on STDIN passing'
|
||||
def self.update_template_helper(append, _id, resource, path, xpath, update = true)
|
||||
if path
|
||||
File.read(path)
|
||||
elsif STDIN.wait_readable(0)
|
||||
STDIN.read
|
||||
elsif append
|
||||
editor_input
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user