1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00

F OpenNebula/one#6427: fix vcenter/stat script's fs/stat call (#2872)

This commit is contained in:
Neal 2023-12-13 11:41:57 -07:00 committed by GitHub
parent 787a0c0f33
commit 331eb2a540
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,6 +86,9 @@ if img_path.start_with? 'vcenter://'
vi_client.close_connection if vi_client
end
else
cmd = "#{File.dirname(__FILE__)}/../fs/stat #{drv_action_enc}"
system(cmd)
cmd = "#{File.dirname(__FILE__)}/../fs/stat"
stdin, stdout, = Open3.popen3(cmd)
stdin.puts(drv_action_enc)
stdin.close
puts stdout.read
end