summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTang Chen <chen.tang@easystack.cn>2016-07-19 15:14:17 +0800
committerTang Chen <chen.tang@easystack.cn>2016-07-19 15:14:17 +0800
commitf4c94e57146479ac75838d8b1c5b8c1770923105 (patch)
treeb9e0148c5856a2745b008ae3433d4fdbef9b3e34
parentcca6e01c0a91b160aa4d77a760892f6ab78b065e (diff)
downloadpython-heatclient-f4c94e57146479ac75838d8b1c5b8c1770923105.tar.gz
Trivial: Remove out-of-date and useless example
The example in add_client() is out-of-date and useless. Remove it. Change-Id: Ic656a8378d1a20b701b10ef2ae8cfe9d56abdc68
-rw-r--r--heatclient/openstack/common/apiclient/client.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/heatclient/openstack/common/apiclient/client.py b/heatclient/openstack/common/apiclient/client.py
index 3ddaa10..24c6e73 100644
--- a/heatclient/openstack/common/apiclient/client.py
+++ b/heatclient/openstack/common/apiclient/client.py
@@ -287,25 +287,6 @@ class HTTPClient(object):
"""Add a new instance of :class:`BaseClient` descendant.
`self` will store a reference to `base_client_instance`.
-
- Example:
-
- >>> def test_clients():
- ... from keystoneclient.auth import keystone
- ... from openstack.common.apiclient import client
- ... auth = keystone.KeystoneAuthPlugin(
- ... username="user", password="pass", tenant_name="tenant",
- ... auth_url="http://auth:5000/v2.0")
- ... openstack_client = client.HTTPClient(auth)
- ... # create nova client
- ... from novaclient.v1_1 import client
- ... client.Client(openstack_client)
- ... # create keystone client
- ... from keystoneclient.v2_0 import client
- ... client.Client(openstack_client)
- ... # use them
- ... openstack_client.identity.tenants.list()
- ... openstack_client.compute.servers.list()
"""
service_type = base_client_instance.service_type
if service_type and not hasattr(self, service_type):