Merge "Renaming backupRef to backupId"
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user