Fix to avoid session timeout

This commit is contained in:
Juan 2018-09-03 18:22:53 +02:00
parent 01f44d607f
commit 58bb759980
2 changed files with 7 additions and 1 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
vn-vmware (1.0.27) stable; urgency=low
vn-vmware (1.0.28) stable; urgency=low
* Initial Release.

View File

@ -440,6 +440,9 @@ sub backup_machine() {
destDatacenter => $dc
#destSpec => $disk_spec
);
# FIXME: Reconnecting because session timeout
Util::connect();
}
}
@ -456,6 +459,9 @@ sub backup_machine() {
unless ($tar_status == 0) {
die "An error occurred when trying to compress '$vm_name' machine files.";
}
# FIXME: Reconnecting because session timeout
Util::connect();
};
my $err = $@;