← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1388576] Re: Error in: Tutorial Building a Dashboard using Horizon

 

** Project changed: openstack-manuals => horizon

-- 
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/1388576

Title:
  Error in: Tutorial Building a Dashboard using Horizon

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  In the view.py example, in this snippet:
  --------
          try:
              marker = self.request.GET.get(
                          tables.InstancesTable._meta.pagination_param, None)

              instances, self._has_more = api.nova.server_list(
                  self.request,
                  search_opts={'marker': marker, 'paginate': True})

              return instances
          except Exception:
              self._has_more = False
              error_message = _('Unable to get instances')
              exceptions.handle(self.request, error_message)

              return instances[]
  -----------------
  return instances[] is wrong because instances has not been defined.

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