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

Allow creating multiple roles on the same line. #76

Open
damnMeddlingKid opened this issue Aug 19, 2024 · 0 comments
Open

Allow creating multiple roles on the same line. #76

damnMeddlingKid opened this issue Aug 19, 2024 · 0 comments

Comments

@damnMeddlingKid
Copy link

damnMeddlingKid commented Aug 19, 2024

Currently if we try to make multiple assignments of roles single line we get an error.

action Init:
    accounts = [Account(name=customer), Account(name="Bob")]

> panic: Creating multiple roles in single step is not supported yet

The work around is to assign roles on multiple lines which is kind of awkward

action Init:
    accounts = []
    accounts.append(Account(name="Alice"))
    accounts.append(Account(name="Bob"))
@damnMeddlingKid damnMeddlingKid changed the title Allow making multiple assignments on the same line. Allow creating multiple roles on the same line. Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant