From 404206136c3f155ef90a360338ccbcbe197e7d4a Mon Sep 17 00:00:00 2001 From: Stephen Gordon Date: Fri, 7 Nov 2014 09:27:53 +0100 Subject: [PATCH] Correct "To create a server" SDK example "To create a server" SDK example incorrectly used net_id instead of net.id when assigning the network identifier to a NIC. Change-Id: Ica993938c57e048f56c03c777ccdebae7ffdedfa Closes-Bug: #1390347 backport: juno --- doc/user-guide/section_sdk_nova.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)