File tree 1 file changed +3
-2
lines changed 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ def main():
22
22
group = parser .add_mutually_exclusive_group (required = True )
23
23
group .add_argument ('--username' , '-u' , help = 'username to sign into the server' )
24
24
group .add_argument ('--token-name' , '-n' , help = 'name of the personal access token used to sign into the server' )
25
+ parser .add_argument ('--sitename' , '-S' , default = None )
25
26
26
27
args = parser .parse_args ()
27
28
@@ -41,9 +42,9 @@ def main():
41
42
42
43
else :
43
44
# Trying to authenticate using personal access tokens.
44
- personal_access_token = getpass . getpass ("Personal Access Token: " )
45
+ personal_access_token = input ("Personal Access Token: " )
45
46
tableau_auth = TSC .PersonalAccessTokenAuth (token_name = args .token_name ,
46
- personal_access_token = personal_access_token )
47
+ personal_access_token = personal_access_token , site_id = args . sitename )
47
48
with server .auth .sign_in_with_personal_access_token (tableau_auth ):
48
49
print ('Logged in successfully' )
49
50
You can’t perform that action at this time.
0 commit comments