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:
parent
1ae6c270f7
commit
0f389458f3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user