Merge "Show availability zone for volume backups" into stable/2024.1

This commit is contained in:
Zuul 2024-11-11 15:31:49 +00:00 committed by Gerrit Code Review
commit 705ea9d6aa
4 changed files with 7 additions and 1 deletions

View File

@ -128,4 +128,4 @@ class AdminBackupsTable(project_tables.BackupsTable):
row_actions = (AdminRestoreBackup, ForceDeleteBackup,
AdminDeleteBackup, UpdateVolumeBackupStatusAction,)
columns = ('project', 'name', 'description', 'size', 'status',
'volume_name', 'snapshot',)
'availability_zone', 'volume_name', 'snapshot',)

View File

@ -18,6 +18,8 @@
<dt>{%trans "Fail reason"%}</dt>
<dd>{{ backup.fail_reason }} <dd>
{% endif %}
<dt>{% trans "Availability Zone" %}</dt>
<dd>{{ backup.availability_zone }}</dd>
{% if volume %}
<dt>{% trans "Volume" %}</dt>
<dd>

View File

@ -181,6 +181,8 @@ class BackupsTable(tables.DataTable):
status=True,
status_choices=STATUS_CHOICES,
display_choices=STATUS_DISPLAY_CHOICES)
availability_zone = tables.Column("availability_zone",
verbose_name=_("Availability Zone"))
volume_name = BackupVolumeNameColumn("name",
verbose_name=_("Volume Name"),
link="horizon:project:volumes:detail")

View File

@ -16,6 +16,8 @@
<dt>{%trans "Fail reason"%}</dt>
<dd>{{ backup.fail_reason }} <dd>
{% endif %}
<dt>{% trans "Availability Zone" %}</dt>
<dd>{{ backup.availability_zone }}</dd>
{% if volume %}
<dt>{% trans "Volume" %}</dt>
<dd>