Skip to content

Commit

Permalink
Fix secrets ls
Browse files Browse the repository at this point in the history
  • Loading branch information
romasku committed Dec 20, 2021
1 parent 07fa884 commit c54a244
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -2747,7 +2747,6 @@ Name | Description|
|_--help_|Show this message and exit.|
|_--cluster CLUSTER_|Look on a specified cluster \(the current cluster by default).|
|_\--full-uri_|Output full disk URI.|
|_--org ORG_|Look on a specified org \(the current org by default).|



Expand Down
1 change: 0 additions & 1 deletion neuro-cli/docs/secret.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ List secrets.
| _--help_ | Show this message and exit. |
| _--cluster CLUSTER_ | Look on a specified cluster \(the current cluster by default\). |
| _--full-uri_ | Output full disk URI. |
| _--org ORG_ | Look on a specified org \(the current org by default\). |



Expand Down
11 changes: 2 additions & 9 deletions neuro-cli/src/neuro_cli/secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,8 @@ def secret() -> None:
type=CLUSTER,
help="Look on a specified cluster (the current cluster by default).",
)
@option(
"--org",
type=ORG,
help="Look on a specified org (the current org by default).",
)
@option("--full-uri", is_flag=True, help="Output full disk URI.")
async def ls(
root: Root, full_uri: bool, cluster: Optional[str], org: Optional[str]
) -> None:
async def ls(root: Root, full_uri: bool, cluster: Optional[str]) -> None:
"""
List secrets.
"""
Expand All @@ -55,7 +48,7 @@ async def ls(

secrets = []
with root.status("Fetching secrets") as status:
async with root.client.secrets.list(cluster_name=cluster, org_name=org) as it:
async with root.client.secrets.list(cluster_name=cluster) as it:
async for secret in it:
secrets.append(secret)
status.update(f"Fetching secrets ({len(secrets)} loaded)")
Expand Down

0 comments on commit c54a244

Please sign in to comment.