So after digging into the matter i found out that cliff expects a list with two tuples (columns and its respective data) to display in a tabular format whereas the restore class returned VolumeBackupsRetore object as to what sean explained.
VolumeBackupsRetore object contains _info field which should be returned instead of the object
So after digging into the matter i found out that cliff expects a list with two tuples (columns and its respective data) to display in a tabular format whereas the restore class returned VolumeBackupsRetore object as to what sean explained.
VolumeBackupsRetore object contains _info field which should be returned instead of the object
{'_checksum': None, b470-4e50- 84d7-a0fbdd58c6 f0',
u'volume_ id': u'27b5a87f- 4fb6-4bab- 8d2e-8ada838e17 36',
u'volume_ name': u'new_vol'}, b470-4e50- 84d7-a0fbdd58c6 f0', v2.volume_ backups_ restore. VolumeBackupRes toreManager object at 0x7fbe47875590>, 4fb6-4bab- 8d2e-8ada838e17 36', request_ ids': ['req-557fa5bf- 0c4c-4938- 8d78-f00ec36848 65']}
'_info': {u'backup_id': u'c6c37982-
'_loaded': False,
'backup_id': u'c6c37982-
'manager': <cinderclient.
'volume_id': u'27b5a87f-
'volume_name': u'new_vol',
'x_openstack_
This is the return value format expected by cliff,
[(u'backup_id', u'volume_id', u'volume_name'), (u'c6c37982- b470-4e50- 84d7-a0fbdd58c6 f0', u'27b5a87f- 4fb6-4bab- 8d2e-8ada838e17 36', u'new_vol')]