This commit is contained in:
Cerberus
2010-12-28 15:48:48 -06:00
parent 31d3aed581
commit 902df6eb49
2 changed files with 7 additions and 12 deletions

View File

@@ -23,7 +23,7 @@ from nova.api.openstack import faults
import nova.image.service
def _entity_inst(inst):
def _translate_keys(inst):
""" Coerces the backup schedule into proper dictionary format """
return dict(backupSchedule=inst)
@@ -41,7 +41,7 @@ class Controller(wsgi.Controller):
def index(self, req, server_id):
""" Returns the list of backup schedules for a given instance """
return _entity_inst({})
return _translate_keys({})
def create(self, req, server_id):
""" No actual update method required, since the existing API allows