Skip to content

Commit

Permalink
Merge pull request #36 from tnjordan/default-projectname
Browse files Browse the repository at this point in the history
Empty string as default for projectname.
  • Loading branch information
efiop authored Feb 28, 2023
2 parents e1aa778 + c9b3320 commit 84a1672
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dvc_gs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ def _getcwd():
def _prepare_credentials(self, **config):
login_info = {"consistency": None}
login_info["version_aware"] = config.get("version_aware", False)
login_info["project"] = config.get("projectname")
project = config.get("projectname")
if project is not None:
login_info["project"] = project
login_info["token"] = config.get("credentialpath")
login_info["endpoint_url"] = config.get("endpointurl")
login_info["session_kwargs"] = {"trust_env": True}
Expand Down

0 comments on commit 84a1672

Please sign in to comment.