Skip to content

Commit

Permalink
fix register_compute_resource.py
Browse files Browse the repository at this point in the history
  • Loading branch information
magland committed Oct 30, 2023
1 parent be0c737 commit 18c2d7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion public/help/dandisets.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Search for and select a dandiset.

<!--------------------------------------------------------------------------------->
{% if staging %}
You are viewing the staging site.
You are viewing the staging site. If you need to access embargoed datasets, configure your API key first.

See [Dandi Archive (staging)](https://gui-staging.dandiarchive.org/).
{% else %}
Expand Down
6 changes: 3 additions & 3 deletions python/dendro/compute_resource/register_compute_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def register_compute_resource(*, dir: str, compute_resource_id: Optional[str] =
print(url)
print('')

assert compute_resource_id is not None
assert compute_resource_private_key is not None
return compute_resource_id, compute_resource_private_key
assert COMPUTE_RESOURCE_ID is not None
assert COMPUTE_RESOURCE_PRIVATE_KEY is not None
return COMPUTE_RESOURCE_ID, COMPUTE_RESOURCE_PRIVATE_KEY

def _random_string(length: int) -> str:
import random
Expand Down

0 comments on commit 18c2d7c

Please sign in to comment.