Skip to content

Commit

Permalink
Fix to how the XML was passing through when a new project is created
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryant Howell committed May 14, 2020
1 parent a373943 commit 499f51f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name='tableau_tools',
python_requires='>=3.6',
version='5.1.3',
version='5.1.4',
packages=['tableau_tools', 'tableau_tools.tableau_rest_api', 'tableau_tools.tableau_documents',
'tableau_tools.examples', 'tableau_tools.tableau_rest_api.methods'],
url='https://github.com/bryantbhowell/tableau_tools',
Expand Down
3 changes: 2 additions & 1 deletion tableau_rest_api/methods/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ def create_project(self, project_name: Optional[str] = None, project_desc: Optio
new_project = self.send_add_request(url, tsr)
self.end_log_block()
project_luid = new_project.findall('.//t:project', self.ns_map)[0].get("id")
proj_xml = new_project.findall('.//t:project', self.ns_map)[0]
if no_return is False:
return self.get_published_project_object(project_luid, new_project)
return self.get_published_project_object(project_luid, proj_xml)
except RecoverableHTTPException as e:
if e.http_code == 409:
self.log('Project named {} already exists, finding and returning the Published Project Object'.format(
Expand Down

0 comments on commit 499f51f

Please sign in to comment.