summaryrefslogtreecommitdiff
path: root/examples/object_api.py
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2015-04-29 22:59:02 -0500
committerDean Troyer <dtroyer@gmail.com>2015-06-02 09:49:17 -0500
commita05cbf4c998678a3619d82dd49be2b7759373d60 (patch)
treeade0c263568a4e9758a2d0d46cc600850b629b6f /examples/object_api.py
parent9bf24f3ae1f8bbf0003206d2e158b597bffe787f (diff)
downloadpython-openstackclient-a05cbf4c998678a3619d82dd49be2b7759373d60.tar.gz
Rework shell tests
This is the first step in reworking the shell argument handling, clean up and add tests to ensure functionality doesn't change. * Rework shell tests to break down global options and auth options. * Make tests table-driven * Remove 'os_' from 'cacert' and 'default_domain' internal option names Change-Id: Icf69c7e84f3f44b366fe64b6bbf4e3fe958eb302
Diffstat (limited to 'examples/object_api.py')
-rwxr-xr-xexamples/object_api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/object_api.py b/examples/object_api.py
index 441013ca..11b62da7 100755
--- a/examples/object_api.py
+++ b/examples/object_api.py
@@ -52,8 +52,8 @@ def run(opts):
# NOTE(dtroyer): This converts from the usual OpenStack way to the single
# requests argument and is an app-specific thing because
# we want to be like OpenStackClient.
- if opts.os_cacert:
- verify = opts.os_cacert
+ if opts.cacert:
+ verify = opts.cacert
else:
verify = not opts.insecure