From 3c0557d698f8611ada86a191277714a2adc37a89 Mon Sep 17 00:00:00 2001 From: Rodrigo Barbieri Date: Tue, 27 Feb 2024 10:50:13 -0300 Subject: [PATCH] [TRIVIAL] Add comment about policy override for images>launch button For some reason the policy rule name changes as it is processed and becomes non-obvious what to set in the override file to alter the policy for the images>launch button. Change-Id: I1e843784a53801da98a9d384be0190fbb5bdfee2 --- openstack_dashboard/dashboards/project/images/images/tables.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openstack_dashboard/dashboards/project/images/images/tables.py b/openstack_dashboard/dashboards/project/images/images/tables.py index 9541973994..2e4a6e0859 100644 --- a/openstack_dashboard/dashboards/project/images/images/tables.py +++ b/openstack_dashboard/dashboards/project/images/images/tables.py @@ -36,6 +36,9 @@ class LaunchImage(tables.LinkAction): url = "horizon:project:instances:launch" classes = ("ajax-modal", "btn-launch") icon = "cloud-upload" + # NOTE(ganso): This policy rule below gets renamed to "compute:create" + # and needs to be added to the nova override file + # as "compute:create: ". policy_rules = (("compute", "os_compute_api:servers:create"),) def get_link_url(self, datum):