diff --git a/functions-common b/functions-common index a0ec084e3a..1b91adcf0d 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" \