diff --git a/openstack_dashboard/dashboards/identity/static/dashboard/identity/roles/actions/create.action.service.js b/openstack_dashboard/dashboards/identity/static/dashboard/identity/roles/actions/create.action.service.js index b941a9136a..457fd18544 100644 --- a/openstack_dashboard/dashboards/identity/static/dashboard/identity/roles/actions/create.action.service.js +++ b/openstack_dashboard/dashboards/identity/static/dashboard/identity/roles/actions/create.action.service.js @@ -61,7 +61,7 @@ }, $validators: { rolesExists: function (name) { - return (roles.indexOf(name) === -1); + return (roles.indexOf(name.toLowerCase()) === -1); } } } @@ -118,7 +118,7 @@ } function getName(item) { - return item.name; + return item.name.toLowerCase(); } }