8000 Fix for #1301 of duplicate default permission requests · daxcurson/server-client-python@3fefcfa · GitHub
[go: up one dir, main page]

Skip to content

Commit 3fefcfa

Browse files
committed
Fix for tableau#1301 of duplicate default permission requests
1. logging to the root logger isn't correct 2. the log line calls fetch_call() which makes a server request 3. retuns the results of fetch_call() which is never used anywhere Removing these lines from _set_default_permissions makes it more functionally equivalent to the above _set_permissions
1 parent d92022e commit 3fefcfa

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tableauserverclient/models/project_item.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,6 @@ def _set_default_permissions(self, permissions, content_type):
163163
attr,
164164
permissions,
165165
)
166-
fetch_call = getattr(self, attr)
167-
logging.getLogger().info({"type": attr, "value": fetch_call()})
168-
return fetch_call()
169166

170167
@classmethod
171168
def from_response(cls, resp, ns) -> List["ProjectItem"]:

0 commit comments

Comments
 (0)
0