Use os role list instead of os user role list

Since `os user role list` is being deprecated, we should start
migrating to `os role list`, which now has the required ability
to list a users role on a project as of v1.0.2 of osc.

Change-Id: I3fa8bf8f1feaac16e1cde5c55b1be00b92eaa5f6
This commit is contained in:
Steve Martinelli 2015-01-19 15:58:49 -05:00
parent 62002dd88b
commit 5541a618de

View File

@ -919,8 +919,8 @@ function get_or_create_role {
# Usage: get_or_add_user_role <role> <user> <project>
function get_or_add_user_role {
# Gets user role id
local user_role_id=$(openstack user role list \
$2 \
local user_role_id=$(openstack role list \
--user $2 \
--project $3 \
--column "ID" \
--column "Name" \