| ... | ... |
@@ -610,7 +610,7 @@ function create_swift_accounts {
|
| 610 | 610 |
|
| 611 | 611 |
KEYSTONE_CATALOG_BACKEND=${KEYSTONE_CATALOG_BACKEND:-sql}
|
| 612 | 612 |
|
| 613 |
- local another_role=$(openstack role list | awk "/ anotherrole / { print \$2 }")
|
|
| 613 |
+ local another_role=$(get_or_create_role "anotherrole") |
|
| 614 | 614 |
|
| 615 | 615 |
# NOTE(jroll): Swift doesn't need the admin role here, however Ironic uses |
| 616 | 616 |
# temp urls, which break when uploaded by a non-admin role |