diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-07-17 13:55:47 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-07-17 13:55:47 +0000 |
| commit | bbe71eb9a310c67f6c8a1b8da1b2fb2ec37fd3ab (patch) | |
| tree | f1b9d2d043f63b488d7c32aeb8d63930ee7ece71 /openstackclient/shell.py | |
| parent | 83edde0ec9070927320dac926a3a0b5d33c86009 (diff) | |
| parent | 36391a81a3415d24c55d6bbc318157dc119da8a7 (diff) | |
| download | python-openstackclient-bbe71eb9a310c67f6c8a1b8da1b2fb2ec37fd3ab.tar.gz | |
Merge "Rename endpoint type to interface"
Diffstat (limited to 'openstackclient/shell.py')
| -rw-r--r-- | openstackclient/shell.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/openstackclient/shell.py b/openstackclient/shell.py index b4e5904c..edeffdfb 100644 --- a/openstackclient/shell.py +++ b/openstackclient/shell.py @@ -209,14 +209,14 @@ class OpenStackShell(app.App): DEFAULT_DOMAIN + ' (Env: OS_DEFAULT_DOMAIN)') parser.add_argument( - '--os-endpoint-type', - metavar='<endpoint-type>', - dest='endpoint_type', + '--os-interface', + metavar='<interface>', + dest='interface', choices=['admin', 'public', 'internal'], - default=utils.env('OS_ENDPOINT_TYPE'), - help='Select an endpoint type.' - ' Valid endpoint types: [admin, public, internal].' - ' (Env: OS_ENDPOINT_TYPE)') + default=utils.env('OS_INTERFACE'), + help='Select an interface type.' + ' Valid interface types: [admin, public, internal].' + ' (Env: OS_INTERFACE)') parser.add_argument( '--timing', default=False, @@ -263,10 +263,10 @@ class OpenStackShell(app.App): self.options.project_name = tenant_name # Do configuration file handling - # Ignore the default value of endpoint_type. Only if it is set later + # Ignore the default value of interface. Only if it is set later # will it be used. cc = cloud_config.OpenStackConfig( - override_defaults={'endpoint_type': None, }) + override_defaults={'interface': None, }) self.log.debug("defaults: %s", cc.defaults) self.cloud = cc.get_one_cloud( |
