Fix string representation of VolumeBackupsRestore

Change string representation of VolumeBackupsRestore to use
volume_id rather than non-existent VolumeBackupsRestore id.

Change-Id: I7b585d0de9b3b0511e7fd1a70b214090a17dfa93
Closes-Bug: #1255488
This commit is contained in:
Stephen Mulcahy 2013-11-27 11:04:43 +00:00
parent e8a0e6abdf
commit 3447532ba6
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ from cinderclient import base
class VolumeBackupsRestore(base.Resource):
"""A Volume Backups Restore represents a restore operation."""
def __repr__(self):
return "<VolumeBackupsRestore: %s>" % self.id
return "<VolumeBackupsRestore: %s>" % self.volume_id
class VolumeBackupRestoreManager(base.Manager):

View File

@ -24,7 +24,7 @@ from cinderclient import base
class VolumeBackupsRestore(base.Resource):
"""A Volume Backups Restore represents a restore operation."""
def __repr__(self):
return "<VolumeBackupsRestore: %s>" % self.id
return "<VolumeBackupsRestore: %s>" % self.volume_id
class VolumeBackupRestoreManager(base.Manager):