Add enabled check in Backups panel
If enable_backup is False in OPENSTACK_CINDER_FEATURES
then we should not display the backups panel.
Closes-Bug:
from django.utils.translation import ugettext_lazy as _
+from openstack_dashboard import api
+
import horizon
@@ -25,3 +27,7 @@ class Backups(horizon.Panel):
'openstack.services.volumev3'),
)
policy_rules = (("volume", "backup:get_all"),)
+
+ @staticmethod
+ def can_register():
+ return api.cinder.volume_backup_supported(None)
