← Back to team overview

yahoo-eng-team team mailing list archive

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

 

You have been subscribed to a public bug:

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.

** Affects: horizon
     Importance: Undecided
     Assignee: Fabrizio Fresco (fabrizio-fresco)
         Status: New

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