Fixed resources api

This commit is contained in:
Marc 2014-07-10 17:53:26 +00:00
parent 1e91633c78
commit e38e70d539

View file

@ -56,7 +56,7 @@ if not running_syncdb():
def metadata(self, request, resources=resources): def metadata(self, request, resources=resources):
""" Display resource configuration """ """ Display resource configuration """
ret = old_metadata(self, request) ret = old_metadata(self, request)
ret['resources'] = [ ret['available_resources'] = [
{ {
'name': resource.name, 'name': resource.name,
'ondemand': resource.ondemand, 'ondemand': resource.ondemand,