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

incalculable-dream-27508

06/11/2020, 4:30 PM
f

faint-table-42725

06/11/2020, 4:41 PM
You should be able to pass in a dict with those keys and corresponding values
i

incalculable-dream-27508

06/11/2020, 4:44 PM
I'm just somewhat confused as to what I'm supposed to pass there. I define above an OpenStack network, and I expected to need to pass that, but apparently this is completely different stuff I need to pass.
f

faint-table-42725

06/11/2020, 4:51 PM
https://www.pulumi.com/docs/reference/pkg/openstack/networking/network/ has an example at the very end where it creates the instance w/ the network
I’m not super familiar w/ OpenStack, but I assume you’d do something like this or simply pass { “name”: network1.name } to have it sit on that network
i

incalculable-dream-27508

06/11/2020, 4:52 PM
Huh. So
Copy code
networks=[{'name': 'my_net'}]
appears to work, or at least
pulumi preview
is not complaining
Indeed, thank you! :)
Oh, so indeed I only need to give the name of the network using this syntax, and pulumi doesn't need to be "aware" of such a network