diff --git a/setup.py b/setup.py index 72c0965..d5cbd20 100644 --- a/setup.py +++ b/setup.py @@ -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', diff --git a/tableau_rest_api/methods/project.py b/tableau_rest_api/methods/project.py index 79aeabe..aef0db4 100644 --- a/tableau_rest_api/methods/project.py +++ b/tableau_rest_api/methods/project.py @@ -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(