@@ -25,7 +25,9 @@ def main():
2525 parser .add_argument ("datasource_username" )
2626 parser .add_argument ("authentication_type" )
2727 parser .add_argument ("--datasource_password" , default = None , help = "Datasource password (optional)" )
28- parser .add_argument ("--embed_password" , default = "true" , choices = ["true" , "false" ], help = "Embed password (default: true)" )
28+ parser .add_argument (
29+ "--embed_password" , default = "true" , choices = ["true" , "false" ], help = "Embed password (default: true)"
30+ )
2931
3032 args = parser .parse_args ()
3133
@@ -37,10 +39,7 @@ def main():
3739 server = TSC .Server (args .server , use_server_version = True )
3840
3941 with server .auth .sign_in (tableau_auth ):
40- endpoint = {
41- "workbook" : server .workbooks ,
42- "datasource" : server .datasources
43- }.get (args .resource_type )
42+ endpoint = {"workbook" : server .workbooks , "datasource" : server .datasources }.get (args .resource_type )
4443
4544 resource = endpoint .get_by_id (args .resource_id )
4645 endpoint .populate_connections (resource )
@@ -55,7 +54,7 @@ def main():
5554 authentication_type = args .authentication_type ,
5655 username = args .datasource_username ,
5756 password = args .datasource_password ,
58- embed_password = embed_password
57+ embed_password = embed_password ,
5958 )
6059
6160 print (f"Updated connections on { args .resource_type } { args .resource_id } : { updated_ids } " )
0 commit comments