Skip to content
Snippets Groups Projects
Commit 30386390 authored by František Dvořák's avatar František Dvořák
Browse files

Do not use ownCloud without credentials - fixes internal spawn monitoring

parent e74ddeb9
No related branches found
No related tags found
Loading
...@@ -320,6 +320,7 @@ hub: ...@@ -320,6 +320,7 @@ hub:
) )
self.token_path = os.path.join(self.token_mount_path, "access_token") self.token_path = os.path.join(self.token_mount_path, "access_token")
if auth_state:
access_token = auth_state.get("access_token", None) access_token = auth_state.get("access_token", None)
headers = { headers = {
"Accept": "application/json", "Accept": "application/json",
......
...@@ -336,6 +336,7 @@ hub: ...@@ -336,6 +336,7 @@ hub:
) )
self.token_path = os.path.join(self.token_mount_path, "access_token") self.token_path = os.path.join(self.token_mount_path, "access_token")
if auth_state:
access_token = auth_state.get("access_token", None) access_token = auth_state.get("access_token", None)
headers = { headers = {
"Accept": "application/json", "Accept": "application/json",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment