Merge "Renaming backupRef to backupId"

This commit is contained in:
Jenkins
2013-04-04 00:49:16 +00:00
committed by Gerrit Code Review

View File

@@ -47,7 +47,7 @@ class InstanceCommands(common.AuthedCommandsBase):
'marker',
'name',
'size',
'backupRef'
'backupId'
]
def create(self):
@@ -55,8 +55,8 @@ class InstanceCommands(common.AuthedCommandsBase):
self._require('name', 'size', 'flavor')
volume = {"size": self.size}
restorePoint = None
if self.backupRef is not None:
restorePoint = {"backupRef": self.backupRef}
if self.backupId is not None:
restorePoint = {"backupId": self.backupId}
self._pretty_print(self.dbaas.instances.create, self.name,
self.flavor, volume, restorePoint=restorePoint)