Skip to content

Commit 0451443

Browse files
author
Carl Helmertz
committed
Merge pull request ITRS-Group#8 in SYSTEM-ADDONS/plugins-op5-check_vmware_api from bugfix/MON-9527-revert-commit to master
* commit '1f4767e46e7b916072a4efbee201edbd735a0f81': Revert "Session cookies will be used for loading and reusing sessions and not only for faster authentication."
2 parents 1880c5f + 1f4767e commit 0451443

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

check_vmware_api.pl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -618,14 +618,13 @@ sub main {
618618
if (defined($sessionfile) and -e $sessionfile)
619619
{
620620
Opts::set_option("sessionfile", $sessionfile);
621-
Vim::load_session(service_url => $host_address, session_file => $sessionfile);
622621
eval {
623-
Util::connect();
622+
Util::connect($host_address, $username, $password);
624623
die "Connected host doesn't match reqested once\n" if (Opts::get_option("url") ne $host_address);
625624
};
626625
if ($@) {
627626
Opts::set_option("sessionfile", undef);
628-
Util::connect();
627+
Util::connect($host_address, $username, $password);
629628
}
630629
}
631630
else

0 commit comments

Comments
 (0)