Remove die_if_not_set check for var user_roles

Since the later logic will add role if the user role is not
found. "die_if_not_set" check will exit the main script.

Closes-Bug: #1389714

Change-Id: I995cf357d09267fee55e44575e3e301bcffebca3
This commit is contained in:
JUNJIE NAN 2014-10-30 18:51:16 +08:00
parent c1b3eb22f7
commit a055c1b6a9
1 changed files with 0 additions and 1 deletions

View File

@ -156,7 +156,6 @@ add_role() {
user_roles=$(keystone user-role-list \
--user_id $user_id\
--tenant_id $tenant 2>/dev/null)
die_if_not_set $LINENO user_roles "Fail to get user_roles for tenant($tenant) and user_id($user_id)"
if [ $? == 0 ]; then
# Folsom
existing_role=$(get_data 1 $role_id 1 echo "$user_roles")