Merge "Use standard get_or_create_role to find role"
diff --git a/lib/swift b/lib/swift
index dac121b..fc736a6 100644
--- a/lib/swift
+++ b/lib/swift
@@ -610,7 +610,7 @@
 
     KEYSTONE_CATALOG_BACKEND=${KEYSTONE_CATALOG_BACKEND:-sql}
 
-    local another_role=$(openstack role list | awk "/ anotherrole / { print \$2 }")
+    local another_role=$(get_or_create_role "anotherrole")
 
     # NOTE(jroll): Swift doesn't need the admin role here, however Ironic uses
     # temp urls, which break when uploaded by a non-admin role