From ed3a2bb7222f2cb4bf40c57145b1e7b225d26040 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 18 Apr 2012 14:31:28 +0800 Subject: [PATCH] update README.rst,add args "service_type" when getting endpoints. Change-Id: Ib7e05f8eaff84e26869ec1a098ea98edd213018b --- AUTHORS | 1 + README.rst | 20 +------------------- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/AUTHORS b/AUTHORS index df10dcd15..2e40fe8dd 100644 --- a/AUTHORS +++ b/AUTHORS @@ -49,6 +49,7 @@ Russell Bryant Sandy Walsh Unmesh Gurjar William Wolf +Yaguang Tang Zhongyue Luo Scott Moser Paul Voccio diff --git a/README.rst b/README.rst index 195480489..ba3af929d 100644 --- a/README.rst +++ b/README.rst @@ -233,29 +233,11 @@ Python API __ http://packages.python.org/python-novaclient/ -By way of a quick-start:: - - >>> import novaclient - >>> nt = novaclient.OpenStack(USERNAME, PASSWORD, PROJECT_ID [, AUTH_URL]) - >>> nt.flavors.list() - [...] - >>> nt.servers.list() - [...] - >>> s = nt.servers.create(image=2, flavor=1, name='myserver') - - ... time passes ... - - >>> s.reboot() - - ... time passes ... - - >>> s.delete() - Quick-start using keystone:: # use v2.0 auth with http://example.com:5000/v2.0/") >>> from novaclient.v1_1 import client - >>> nt = client.Client(USER, PASS, TENANT, AUTH_URL) + >>> nt = client.Client(USER, PASS, TENANT, AUTH_URL, service_type="compute") >>> nt.flavors.list() [...] >>> nt.servers.list()