8000 226 fix populate connections bug (#227) · rmagier1/server-client-python@73f8415 · GitHub
[go: up one dir, main page]

Skip to content

Commit 73f8415

Browse files
grbritzRussell Hay
authored andcommitted
226 fix populate connections bug (tableau#227)
* added namespace to call on line 60 * separated code into 2 lines to pass E501 standards (<120 chars)
1 parent 71dab33 commit 73f8415

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tableauserverclient/server/endpoint/datasources_endpoint.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ def populate_connections(self, datasource_item):
5757
raise MissingRequiredFieldError(error)
5858
url = '{0}/{1}/connections'.format(self.baseurl, datasource_item.id)
5959
server_response = self.get_request(url)
60-
datasource_item._set_connections(ConnectionItem.from_response(server_response.content))
60+
datasource_item._set_connections(
61+
ConnectionItem.from_response(server_response.content, self.parent_srv.namespace))
6162
logger.info('Populated connections for datasource (ID: {0})'.format(datasource_item.id))
6263

6364
# Delete 1 datasource by id

0 commit comments

Comments
 (0)
0