From 331eb2a540db0a3a6b565a8c3818818b38868e48 Mon Sep 17 00:00:00 2001 From: Neal <92747003+onenhansen@users.noreply.github.com> Date: Wed, 13 Dec 2023 11:41:57 -0700 Subject: [PATCH] F OpenNebula/one#6427: fix vcenter/stat script's fs/stat call (#2872) --- src/datastore_mad/remotes/vcenter/stat | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/datastore_mad/remotes/vcenter/stat b/src/datastore_mad/remotes/vcenter/stat index 136a576a72..cf11eee1b6 100755 --- a/src/datastore_mad/remotes/vcenter/stat +++ b/src/datastore_mad/remotes/vcenter/stat @@ -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