Przeglądaj źródła

Merge "Add policy_rules to aggregates dashboard"

tags/17.1.0
Zuul 2 miesięcy temu
rodzic
commit
338a58fba6
2 zmienionych plików z 9 dodań i 0 usunięć
  1. +5
    -0
      openstack_dashboard/dashboards/admin/aggregates/tables.py
  2. +4
    -0
      releasenotes/notes/policy-rules-aggregates-3cd74c07e30511fa.yaml

+ 5
- 0
openstack_dashboard/dashboards/admin/aggregates/tables.py Wyświetl plik

@@ -21,6 +21,8 @@ from openstack_dashboard.dashboards.admin.aggregates import constants


class DeleteAggregateAction(tables.DeleteAction):
policy_rules = (("compute", "os_compute_api:os-aggregates:delete"),)

@staticmethod
def action_present(count):
return ungettext_lazy(
@@ -51,6 +53,7 @@ class CreateAggregateAction(tables.LinkAction):
verbose_name = _("Create Host Aggregate")
url = constants.AGGREGATES_CREATE_URL
classes = ("ajax-modal",)
policy_rules = (("compute", "os_compute_api:os-aggregates:create"),)
icon = "plus"


@@ -66,6 +69,7 @@ class UpdateMetadataAction(tables.LinkAction):
name = "update-metadata"
verbose_name = _("Update Metadata")
ajax = False
policy_rules = (("compute", "os_compute_api:os-aggregates:set_metadata"),)
icon = "pencil"
attrs = {"ng-controller": "MetadataModalHelperController as modal"}

@@ -85,6 +89,7 @@ class UpdateAggregateAction(tables.LinkAction):
verbose_name = _("Edit Host Aggregate")
url = constants.AGGREGATES_UPDATE_URL
classes = ("ajax-modal",)
policy_rules = (("compute", "os_compute_api:os-aggregates:update"),)
icon = "pencil"



+ 4
- 0
releasenotes/notes/policy-rules-aggregates-3cd74c07e30511fa.yaml Wyświetl plik

@@ -0,0 +1,4 @@
---
fixes:
- |
The missing nova's os-aggregates policy rules are added to the dashboard.

Ładowanie…
Anuluj
Zapisz