1
0
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:
Daniel Clavijo Coca 2023-09-07 11:14:03 -06:00 committed by GitHub
parent d57ff44ff5
commit 6de9e4e8bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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