Skip to content

Commit

Permalink
Don't call remote when --help in remote-X (#2642)
Browse files Browse the repository at this point in the history
* don't call remote

Signed-off-by: Yee Hing Tong <[email protected]>

* nit

Signed-off-by: Yee Hing Tong <[email protected]>

---------

Signed-off-by: Yee Hing Tong <[email protected]>
  • Loading branch information
wild-endeavor authored Aug 2, 2024
1 parent 001b8ad commit 72da0d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flytekit/clis/sdk_in_container/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import json
import os
import pathlib
import sys
import tempfile
import typing
from dataclasses import dataclass, field, fields
Expand Down Expand Up @@ -741,6 +742,8 @@ def _get_entities(self, r: FlyteRemote, project: str, domain: str, limit: int) -
return []

def list_commands(self, ctx):
if "--help" in sys.argv:
return []
if self._entities or ctx.obj is None:
return self._entities

Expand Down

0 comments on commit 72da0d0

Please sign in to comment.