Skip to content

Commit

Permalink
fixes issue with long running sync jobs and disconnected sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
bb-Ricardo committed Feb 13, 2024
1 parent ee17c1d commit 3460a86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module/sources/vmware/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import urllib3
import requests
import http
# noinspection PyUnresolvedReferences
from packaging import version
# noinspection PyUnresolvedReferences
Expand Down Expand Up @@ -348,7 +349,7 @@ def apply(self):
# test if session is still alive
try:
self.session.sessionManager.currentSession.key
except (vim.fault.NotAuthenticated, AttributeError):
except (vim.fault.NotAuthenticated, AttributeError, http.client.RemoteDisconnected):
log.info("No existing vCenter session found.")
self.session = None
self.tag_session = None
Expand Down

0 comments on commit 3460a86

Please sign in to comment.