mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-14 01:57:24 +03:00
F OpenNebula/one#6242: stdin for update methods (#2717)
This commit is contained in:
parent
d57ff44ff5
commit
6de9e4e8bb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user