Skip to content

Commit

Permalink
Merge pull request #6 from shipyardapp/sc-5654/bug-fix-tableau-site
Browse files Browse the repository at this point in the history
Handle default site-id
  • Loading branch information
wrp801 authored Jul 13, 2023
2 parents 8da0554 + 6f26ad4 commit fc86791
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tableau_blueprints/authorization.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ def connect_to_tableau(
:param sign_in_method: Whether to log in with username_password or access_token.
:return: server object, connection object
"""
# handle the cases where the tableau server does not have a specific site
if str(site_id).lower() == 'default':
site_id = ''

if sign_in_method == 'username_password':
tableau_auth = TSC.TableauAuth(username, password, site_id=site_id)

Expand Down

0 comments on commit fc86791

Please sign in to comment.