Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.4.2
-
None
Description
VIM_SSH.pm::get_config_option_info causes vim-cmd solo/querycfgopt to be executed on an ESXi host. The output is rather complex.
When utils.pm::run_ssh_command is used to execute the command (rather than OS.pm::execute_new), there is a 1-2 minute or more pause as the following lines are executed:
$ssh_output =~ s/.*ssh-askpass:[^\n]*//igs; $ssh_output =~ s/.*bad permissions:[^\n]*//igs;
The problem is due to the /s parameter. Removing it speeds processing these lines up.