1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-29 18:50:08 +03:00

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

(cherry picked from commit 331eb2a540db0a3a6b565a8c3818818b38868e48)
This commit is contained in:
Neal 2023-12-13 11:41:57 -07:00 committed by Tino Vázquez
parent 1ae6c270f7
commit 0f389458f3
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

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