Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(project): sends org when fetching guid from name #287

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions riocli/project/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from rapyuta_io import Client

from riocli.config import new_client, new_v2_client
from riocli.constants import Colors
from riocli.constants import Colors, Symbols
from riocli.exceptions import LoggedOut
from riocli.utils.selector import show_selection
from riocli.v2client import Client as v2Client
Expand Down Expand Up @@ -49,9 +49,10 @@ def decorated(**kwargs: typing.Any):

if guid is None:
try:
guid = find_project_guid(client, name)
organization = ctx.obj.data.get('organization_id')
guid = find_project_guid(client, name, organization)
except Exception as e:
click.secho(str(e), fg=Colors.RED)
click.secho('{} {}'.format(Symbols.ERROR, e), fg=Colors.RED)
raise SystemExit(1)

kwargs['project_name'] = name
Expand Down
Loading