You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I assume that's why it results as None, which is evaluated for uniqueness.
It's very likely that this issue affects other entities.
Warning
Moreover, maybe the name is not enough to check for uniqueness. E.g. I might want to define two workspaces with the same name but in different organizations.
The text was updated successfully, but these errors were encountered:
Thanks for reporting @alvaromartmart, I've pushed a fix in #127 that should resolve this. As you rightly suggested, there was an issue in how we check for the value of the name key or --name arg that returned None for when constructing arguments for teams.
Testing with your above example:
$ seqerakit teams.yml --dryrun
DEBUG:root:DRYRUN: Running command tw teams add --name launchers --organization myorg --description 'Users with launcher permissions'
DEBUG:root:DRYRUN: Running command tw teams members --team launchers --organization myorg add --member [email protected]
DEBUG:root:DRYRUN: Running command tw teams add --name viewers --organization myorg --description 'Users with viewer permissions'
DEBUG:root:DRYRUN: Running command tw teams members --team viewers --organization myorg add --member [email protected]
Do you think in addition to checking for name, we should check for workspace for uniqueness? Most resources can't be duplicated within a workspace, but can within an organization, right?
I noticed this issue trying to create two different teams:
Trying to run this through
seqerakit
resulted in the error "Duplicate 'name' specified in config file for teams: None".I suspect what might be the reason:
seqera-kit/seqerakit/helper.py
Lines 40 to 44 in b098220
parse_block
doesn't always generate commands with a--name
argument, for instanceparse_teams_block
doesn't as it relies on theparticipants add...
seqera-kit/seqerakit/helper.py
Lines 184 to 194 in b098220
I assume that's why it results as
None
, which is evaluated for uniqueness.It's very likely that this issue affects other entities.
Warning
Moreover, maybe the
name
is not enough to check for uniqueness. E.g. I might want to define two workspaces with the same name but in different organizations.The text was updated successfully, but these errors were encountered: