diff options
| author | Jenkins <jenkins@review.openstack.org> | 2014-07-09 06:59:39 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2014-07-09 06:59:39 +0000 |
| commit | e8f058775eb3dbb9a159218c427d439b3dcc6012 (patch) | |
| tree | f8c32a714ec66f8a8a3a28c9d368c7d99dee59b5 /openstackclient/volume/client.py | |
| parent | e7bfabc886f9b132de2d2705f40b746cf052c7dd (diff) | |
| parent | 9b2e264ada9f98444d5c7f106dd320dde282946c (diff) | |
| download | python-openstackclient-e8f058775eb3dbb9a159218c427d439b3dcc6012.tar.gz | |
Merge "Add support to list volume extensions"
Diffstat (limited to 'openstackclient/volume/client.py')
| -rw-r--r-- | openstackclient/volume/client.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/openstackclient/volume/client.py b/openstackclient/volume/client.py index f630f9f5..f71fbe8b 100644 --- a/openstackclient/volume/client.py +++ b/openstackclient/volume/client.py @@ -15,8 +15,11 @@ import logging +from cinderclient import extension +from cinderclient.v1.contrib import list_extensions from cinderclient.v1 import volume_snapshots from cinderclient.v1 import volumes + from openstackclient.common import utils # Monkey patch for v1 cinderclient @@ -45,6 +48,7 @@ def make_client(instance): # Set client http_log_debug to True if verbosity level is high enough http_log_debug = utils.get_effective_log_level() <= logging.DEBUG + extensions = [extension.Extension('list_extensions', list_extensions)] client = volume_client( username=instance._username, api_key=instance._password, @@ -53,7 +57,8 @@ def make_client(instance): cacert=instance._cacert, insecure=instance._insecure, region_name=instance._region_name, - http_log_debug=http_log_debug + extensions=extensions, + http_log_debug=http_log_debug, ) # Populate the Cinder client to skip another auth query to Identity |
