Skip to content

Commit

Permalink
Merge pull request #59 from QualiSystems/wip/adam.s/fix_only_token_bug
Browse files Browse the repository at this point in the history
fix only token and gitignore
  • Loading branch information
AdamSharon committed Mar 18, 2021
2 parents 9369eba + 6e8b99d commit 672549f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ cloudshell_cm_customscript.egg-info/
package/cloudshell_cm_customscript.egg-info/
.vscode
venv
.venv*/
dist
*.stackdump
2 changes: 1 addition & 1 deletion package/cloudshell/cm/customscript/customscript_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _download_script(self, script_repo, logger, cancel_sampler):
"""
url = script_repo.url
auth = None
if script_repo.username:
if script_repo.username or script_repo.token:
auth = HttpAuth(script_repo.username, script_repo.password, script_repo.token)
return ScriptDownloader(logger, cancel_sampler).download(url, auth)

Expand Down

0 comments on commit 672549f

Please sign in to comment.