From c4d2f92116ca3a2b01254156cc04ff2e9eaeadc4 Mon Sep 17 00:00:00 2001 From: Ken'ichi Ohmichi Date: Fri, 17 Apr 2015 05:35:54 +0000 Subject: [PATCH] Fix typo on class Client sample Current Client sample doesn't work because the imported class is not used in the sample. This patch fixes it. Change-Id: I01d4ec277a8858a14f4e3a50b8de130aa5a4f0b5 --- novaclient/v2/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/novaclient/v2/client.py b/novaclient/v2/client.py index bbb8949d9..c759dcec6 100644 --- a/novaclient/v2/client.py +++ b/novaclient/v2/client.py @@ -62,7 +62,7 @@ class Client(object): >>> from keystoneclient.auth.identity import v2 >>> from keystoneclient import session - >>> from novaclient.client import Client + >>> from novaclient import client >>> auth = v2.Password(auth_url=AUTH_URL, username=USERNAME, password=PASSWORD, @@ -72,9 +72,9 @@ class Client(object): Then call methods on its managers:: - >>> client.servers.list() + >>> nova.servers.list() ... - >>> client.flavors.list() + >>> nova.flavors.list() ... It is also possible to use an instance as a context manager in which