Hi, I try to output a list for my custom provider,...
# python
h
Hi, I try to output a list for my custom provider, like in this example here: https://github.com/pulumi/examples/blob/master/aws-py-ec2-provisioners/provisioners.py#L159-L160 But when I do this,
pulumi up
either hangs, or I get this error:
Copy code
File ".venv/lib/python3.9/site-packages/pulumi/runtime/rpc.py", line 79, in _get_list_element_type
        raise AssertionError(f"Unexpected type. Expected 'list' got '{typ}'")
    AssertionError: Unexpected type. Expected 'list' got '<class 'list'>'
    error: an unhandled error occurred: Program exited with non-zero exit code: 1
The code, which is just some playing around with dynamic providers: https://gist.github.com/ederst/406438f594dd82b3c614df43658b3bf8 My guess is i am running into https://github.com/pulumi/pulumi/pull/7049 and I have to wait until this is resolved, and use some different method to expose a list as output (Output[str] and ','.join()) in the meantime?
135 Views