incalculable-dream-27508
02/11/2021, 3:23 PMsec_rule_api = openstack.networking.SecGroupRule(
"name",
__opts__=pulumi.ResourceOptions(provider=REGIONS[dc]),
delete_before_replace=True)
and with the last line added now I'm getting
error: Program failed with an unhandled exception:
error: Traceback (most recent call last):
File "/home/user/.pulumi/bin/pulumi-language-python-exec", line 85, in <module>
loop.run_until_complete(coro)
File "/usr/lib64/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/home/user/.local/share/virtualenvs/pulumi-openotp-xju7YdsB/lib/python3.9/site-packages/pulumi/runtime/stack.py", line 83, in run_in_stack
await run_pulumi_func(lambda: Stack(func))
File "/home/user/.local/share/virtualenvs/pulumi-openotp-xju7YdsB/lib/python3.9/site-packages/pulumi/runtime/stack.py", line 35, in run_pulumi_func
func()
File "/home/user/.local/share/virtualenvs/pulumi-openotp-xju7YdsB/lib/python3.9/site-packages/pulumi/runtime/stack.py", line 83, in <lambda>
await run_pulumi_func(lambda: Stack(func))
File "/home/user/.local/share/virtualenvs/pulumi-openotp-xju7YdsB/lib/python3.9/site-packages/pulumi/runtime/stack.py", line 106, in __init__
func()
File "/home/user/.pulumi/bin/pulumi-language-python-exec", line 84, in <lambda>
coro = pulumi.runtime.run_in_stack(lambda: runpy.run_path(args.PROGRAM, run_name='__main__'))
File "/usr/lib64/python3.9/runpy.py", line 285, in run_path
return _run_code(code, mod_globals, init_globals,
File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "./__main__.py", line 190, in <module>
sec_rule_api = openstack.networking.SecGroupRule(
TypeError: __init__() got an unexpected keyword argument 'delete_before_replace'
error: an unhandled error occurred: Program exited with non-zero exit code: 1
According to my reading of https://www.pulumi.com/docs/reference/pkg/python/pulumi/#pulumi.ResourceOptions this should work, right?