def logout(self):
        """Logout of a vSphere server."""
        if self._logged_in is True:
            self.si.flush_cache()
            self.sc.sessionManager.Logout()
            self._logged_in = False
def logout ( self ) : if self . _logged_in is True : self . si . flush_cache ( ) self . sc . sessionManager . Logout ( ) self . _logged_in = False
Logout of a vSphere server.