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:
parent
e8a0e6abdf
commit
3447532ba6
@ -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):
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user