
from django.utils.translation import ugettext_lazy as _

import horizon


class Instances(horizon.Panel):
    name = _("Instances")
    slug = 'instances'
    permissions = ('openstack.services.compute',)
    policy_rules = ((("compute", "context_is_admin"),
                     ("compute", "compute:get_all")),)


from django.utils.translation import ugettext_lazy as _

import horizon


class Instances(horizon.Panel):
    name = _("Instances")
    slug = 'instances'
    permissions = ('openstack.services.compute',)
    policy_rules = ((("compute", "context_is_admin"),
                     ("compute", "os_compute_api:servers:detail")),)

Fix an incorrect policy rule in Admin > Instances
Fix an incorrect policy rule in Admin > Instances

Change-Id: I765ae0c36d19c88138fbea9545a2ca4791377ffb
Closes-Bug: #1703066

  
  from django.utils.translation import ugettext_lazy as _
  
  import horizon
  
  
  class Instances(horizon.Panel):
      name = _("Instances")
      slug = 'instances'
      permissions = ('openstack.services.compute',)
      policy_rules = ((("compute", "context_is_admin"),
-                      ("compute", "compute:get_all")),)
+                      ("compute", "os_compute_api:servers:detail")),)
  
Fix an incorrect policy rule in Admin > Instances
## Code Before:

from django.utils.translation import ugettext_lazy as _

import horizon


class Instances(horizon.Panel):
    name = _("Instances")
    slug = 'instances'
    permissions = ('openstack.services.compute',)
    policy_rules = ((("compute", "context_is_admin"),
                     ("compute", "compute:get_all")),)

## Instruction:
Fix an incorrect policy rule in Admin > Instances
## Code After:

from django.utils.translation import ugettext_lazy as _

import horizon


class Instances(horizon.Panel):
    name = _("Instances")
    slug = 'instances'
    permissions = ('openstack.services.compute',)
    policy_rules = ((("compute", "context_is_admin"),
                     ("compute", "os_compute_api:servers:detail")),)
