Skip to content

Commit 4cbd800

Browse files
author
Chris Shin
committed
Fixes login sample to pass in sitename for username/password auth
1 parent ebacfe5 commit 4cbd800

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/login.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def main():
3636
if args.username:
3737
# Trying to authenticate using username and password.
3838
password = getpass.getpass("Password: ")
39-
tableau_auth = TSC.TableauAuth(args.username, password)
39+
tableau_auth = TSC.TableauAuth(args.username, password, site_id=args.sitename)
4040
with server.auth.sign_in(tableau_auth):
4141
print('Logged in successfully')
4242

0 commit comments

Comments
 (0)