diff options
| author | xiexs <xiexs@cn.fujitsu.com> | 2015-11-06 09:57:48 -0500 |
|---|---|---|
| committer | Lin Hua Cheng <os.lcheng@gmail.com> | 2015-11-08 03:57:23 +0000 |
| commit | 176735f4aa8d9b0e9ab3bdb75ac2df8d62a22c8b (patch) | |
| tree | 249c50296e529030c3822633e1c38d426e290bf2 /openstackclient/volume/v2 | |
| parent | 8a1fb85dba6963dee974f896fa9cc345c3a3aff5 (diff) | |
| download | python-openstackclient-176735f4aa8d9b0e9ab3bdb75ac2df8d62a22c8b.tar.gz | |
Change method to get the user_id
Instead of "find_project", using "find_user" to get the user_id
while the option --user is specified for "openstack volume list"
Change-Id: Iea8472b7b8e709a8792a56575e00003a9cbdaa39
Closes-Bug: #1514145
Diffstat (limited to 'openstackclient/volume/v2')
| -rw-r--r-- | openstackclient/volume/v2/volume.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openstackclient/volume/v2/volume.py b/openstackclient/volume/v2/volume.py index f59567cc..f34198dc 100644 --- a/openstackclient/volume/v2/volume.py +++ b/openstackclient/volume/v2/volume.py @@ -304,9 +304,9 @@ class ListVolume(lister.Lister): user_id = None if parsed_args.user: - user_id = identity_common.find_project(identity_client, - parsed_args.user, - parsed_args.user_domain) + user_id = identity_common.find_user(identity_client, + parsed_args.user, + parsed_args.user_domain) search_opts = { 'all_tenants': parsed_args.all_projects, |
