def server_group_list(request):
 try:
  return api.nova.server_group_list(request)
 except Exception:
  exceptions.handle(request, _('Unable to retrieve Nova server groups.'))
  return []

def server_group_list ( request ) : try : return api . nova . server_group_list ( request ) except Exception : exceptions . handle ( request , _ ( 'Unable to retrieve Nova server groups.' ) ) return [ ]
utility method to retrieve a list of server groups .