https://pulumi.com logo
#python
Title
# python
m

microscopic-arm-69377

02/20/2024, 6:54 PM
Has anyone seen this issue? I'm removing one of my subnets on a vnet in Azure, running a preview and there are only two updates.
Copy code
error: Program failed with an unhandled exception:
Traceback (most recent call last):
  File "/pulumi/bin/pulumi-language-python-exec", line 191, in <module>
    loop.run_until_complete(coro)
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/infrastructure/venv/lib/python3.11/site-packages/pulumi/runtime/stack.py", line 141, in run_in_stack
    await run_pulumi_func(run)
  File "/infrastructure/venv/lib/python3.11/site-packages/pulumi/runtime/stack.py", line 51, in run_pulumi_func
    await wait_for_rpcs()
  File "/infrastructure/venv/lib/python3.11/site-packages/pulumi/runtime/stack.py", line 121, in wait_for_rpcs
    raise exception
  File "/infrastructure/venv/lib/python3.11/site-packages/pulumi/output.py", line 175, in run
    value = await self._future
            ^^^^^^^^^^^^^^^^^^
  File "/infrastructure/venv/lib/python3.11/site-packages/pulumi/output.py", line 200, in run
    transformed: Input[U] = func(value)
                            ^^^^^^^^^^^
  File "/infrastructure/venv/lib/python3.11/site-packages/pulumi/output.py", line 264, in lift
    return UNKNOWN if isinstance(v, Unknown) else cast(Any, v)[key]
                                                  ~~~~~~~~~~~~^^^^^
IndexError: list index out of range
This goes away when I add the subnet back to the list of subnets...not sure why, but there appears to be some Python language limitation when processing the possibilities. Python output dicts aren't fully proxied · Issue #4040 · pulumi/pulumi (github.com) I also think there's something wrong with my state that is driving this, so I'm trying to clean that up. Disregard...
a

adventurous-butcher-54166

02/28/2024, 12:14 PM
Do you have a
pulumi.export
which is exporting those subnet outputs?
2 Views