Public bug reported:

When launch vm with dashboard ,the first workflow "SelectProjectUserAction" 
should be hidden,but it displays.
In file:  
\openstack\horizon\openstack_dashboard\dashboards\project\instances\workflows\create_instance.py

class SelectProjectUserAction(workflows.Action):
    project_id = forms.ChoiceField(label=_("Project"))
    user_id = forms.ChoiceField(label=_("User"))

    def __init__(self, request, *args, **kwargs):
        super(SelectProjectUserAction, self).__init__(request, *args, **kwargs)
        # Set our project choices
        projects = [(tenant.id, tenant.name)
                    for tenant in request.user.authorized_tenants]
        self.fields['project_id'].choices = projects

        # Set our user options
        users = [(request.user.id, request.user.username)]
        self.fields['user_id'].choices = users

    class Meta(object):
        name = _("Project & User")
        # Unusable permission so this is always hidden. However, we
        # keep this step in the workflow for validation/verification purposes.
        permissions = ("!",)

** Affects: horizon
     Importance: Undecided
         Status: New

** Attachment added: "create vm.PNG"
   
https://bugs.launchpad.net/bugs/1489300/+attachment/4453209/+files/create%20vm.PNG

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1489300

Title:
  when launch vm the step "SelectProjectUserAction" should  not display.

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  When launch vm with dashboard ,the first workflow "SelectProjectUserAction" 
should be hidden,but it displays.
  In file:  
\openstack\horizon\openstack_dashboard\dashboards\project\instances\workflows\create_instance.py

  class SelectProjectUserAction(workflows.Action):
      project_id = forms.ChoiceField(label=_("Project"))
      user_id = forms.ChoiceField(label=_("User"))

      def __init__(self, request, *args, **kwargs):
          super(SelectProjectUserAction, self).__init__(request, *args, 
**kwargs)
          # Set our project choices
          projects = [(tenant.id, tenant.name)
                      for tenant in request.user.authorized_tenants]
          self.fields['project_id'].choices = projects

          # Set our user options
          users = [(request.user.id, request.user.username)]
          self.fields['user_id'].choices = users

      class Meta(object):
          name = _("Project & User")
          # Unusable permission so this is always hidden. However, we
          # keep this step in the workflow for validation/verification purposes.
          permissions = ("!",)

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1489300/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to