diff --git a/doc/user-guide/section_sdk_nova.xml b/doc/user-guide/section_sdk_nova.xml index fcb44aa104..50239a9bf5 100644 --- a/doc/user-guide/section_sdk_nova.xml +++ b/doc/user-guide/section_sdk_nova.xml @@ -112,7 +112,7 @@ net = nova_client.networks.find(label="private") To create the server, use the network, image, and flavor: - nics = [{'net-id': net_id}] + nics = [{'net-id': net.id}] instance = nova_client.servers.create(name="vm2", image=image, flavor=flavor, key_name="keypair-1", nics=nics)