From 5541a618de890ec721c375506057eeb6cb7a5a63 Mon Sep 17 00:00:00 2001 From: Steve Martinelli Date: Mon, 19 Jan 2015 15:58:49 -0500 Subject: [PATCH] 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 --- functions-common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions-common b/functions-common index 5bca836d37..9c4d59976a 100644 --- a/functions-common +++ b/functions-common @@ -919,8 +919,8 @@ function get_or_create_role { # Usage: get_or_add_user_role 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" \