Skip to content

Commit

Permalink
fix(usergroup): corrects the inspect output
Browse files Browse the repository at this point in the history
The inspect output did not conform with the JSONSchema and using it as
is was not possible. This commit corrects the output and the output will
now be usable with the rio apply command.
  • Loading branch information
pallabpain committed Sep 11, 2023
1 parent e5cf0ff commit fc27292
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions riocli/usergroup/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import click
from click_help_colors import HelpColorsCommand
from rapyuta_io.clients import UserGroup
from rapyuta_io.clients.project import User, Project

from riocli.config import new_client
from riocli.constants import Colors
Expand Down Expand Up @@ -67,8 +66,8 @@ def to_manifest(usergroup: UserGroup, org_guid: str) -> typing.Dict:
},
'spec': {
'description': usergroup.description,
'members': list(members - admins),
'admins': list(admins),
'projects': projects,
'members': [{'emailID': m} for m in list(members - admins)],
'admins': [{'emailID': a} for a in list(admins)],
'projects': [{'name': p} for p in projects],
},
}

0 comments on commit fc27292

Please sign in to comment.