F OpenNebula/one#6242: stdin for update methods (#2717)

This commit is contained in:
Daniel Clavijo Coca authored and GitHub committed 2023-09-07 19:14:03 +02:00
1 parent d57ff44ff5
commit 6de9e4e8bb
1 file changed
+2
+2
View File
@@ -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