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:
parent
787a0c0f33
commit
331eb2a540
@ -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…
Reference in New Issue
Block a user