diff --git a/openstack_dashboard/dashboards/project/volumes/snapshots/tables.py b/openstack_dashboard/dashboards/project/volumes/snapshots/tables.py index dcbb21c08f..0550f0d486 100644 --- a/openstack_dashboard/dashboards/project/volumes/snapshots/tables.py +++ b/openstack_dashboard/dashboards/project/volumes/snapshots/tables.py @@ -40,6 +40,13 @@ class LaunchSnapshot(volume_tables.LaunchVolume): "source_id": vol_id}) return "?".join([base_url, params]) + def allowed(self, request, snapshot=None): + if snapshot: + if (snapshot._volume and + getattr(snapshot._volume, 'bootable', '') == 'true'): + return snapshot.status == "available" + return False + class DeleteVolumeSnapshot(policy.PolicyTargetMixin, tables.DeleteAction): data_type_singular = _("Volume Snapshot")