def populate_backup_choices(self, request, context):
    try:
        backups = api.trove.backup_list(request)
        choices = [(b.id, b.name) for b in backups if (b.status == 'COMPLETED')]
    except Exception:
        choices = []
    if choices:
        choices.insert(0, ('', _('Select backup')))
    else:
        choices.insert(0, ('', _('No backups available')))
    return choices
def populate_backup_choices(self, request, context):
    try:
        backups = api.trove.backup_list(request)
        choices = [(b.id, b.name) for b in backups if (b.status == 'COMPLETED')]
    except Exception:
        choices = []
    if choices:
        choices.insert(0, (, _('Select backup')))
    else:
        choices.insert(0, (, _('No backups available')))
    return choices