summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-10-15 17:21:01 +0000
committerGerrit Code Review <review@openstack.org>2015-10-15 17:21:01 +0000
commitd4e4aaa0f9209b6338d24d2ed6ff87d768fe453f (patch)
tree50ec544a5a477ebc6b96a319b4bd20eb1505f7ed
parent6d73d089962579fd7295435e8226ef700603c166 (diff)
parentf6681a83192386fcf27479c820998691a43e8b79 (diff)
downloados-client-config-d4e4aaa0f9209b6338d24d2ed6ff87d768fe453f.tar.gz
Merge "Fix documentation around regions"
-rw-r--r--README.rst2
-rw-r--r--os_client_config/config.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index 7b737b9..b0466f7 100644
--- a/README.rst
+++ b/README.rst
@@ -247,7 +247,7 @@ Get a named cloud.
import os_client_config
cloud_config = os_client_config.OpenStackConfig().get_one_cloud(
- 'hp', 'region-b.geo-1')
+ 'hp', region_name='region-b.geo-1')
print(cloud_config.name, cloud_config.region, cloud_config.config)
Or, get all of the clouds.
diff --git a/os_client_config/config.py b/os_client_config/config.py
index 6d37835..bff2f5c 100644
--- a/os_client_config/config.py
+++ b/os_client_config/config.py
@@ -551,6 +551,7 @@ class OpenStackConfig(object):
An argparse Namespace object; allows direct passing in of
argparse options to be added to the cloud config. Values
of None and '' will be removed.
+ :param region_name: Name of the region of the cloud.
:param kwargs: Additional configuration options
:raises: keystoneauth1.exceptions.MissingRequiredOptions