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

incalculable-dream-27508

06/01/2020, 6:14 PM
Mhmm, that indeed works syntax-wise, though I'm not sure yet how to use it. Attempts like
Copy code
my_net = openstack.networking.Network.get('my_net_name', 'uuid_from_openstack')
and then
Copy code
instance = openstack.compute.Instance("name", networks=[my_net])
(shortened) complains about
Copy code
Instance resource 'name' has a problem: network.0: expected object, got string
w

white-balloon-205

06/01/2020, 10:08 PM
Note that the error here is suggesting that networks expects an object not a string. You can see the API for this here: https://www.pulumi.com/docs/reference/pkg/openstack/compute/instance/#instancenetwork.