Syntax error in 'instance_get_active_by_window'

Bug #807020 reported by Édouard Thuleau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Kevin Bringard

Bug Description

In method 'instance_get_active_by_window' of the file 'nova/db/sqlalchemy/api.py', two syntax error are present :

*** /usr/lib/pymodules/python2.7/nova/db/sqlalchemy/api.py 2011-07-07 16:42:04.080054757 +0200
--- api.py 2011-07-07 16:41:55.430029053 +0200
***************
*** 1141,1149 ****
      """Return instances that were continuously active over the given window"""
      session = get_session()
      query = session.query(models.Instance).\
! options(joinedload_all('fixed_ip.floating_ips')).\
                     options(joinedload('security_groups')).\
! options(joinedload_all('fixed_ip.network')).\
                     options(joinedload('instance_type')).\
                     filter(models.Instance.launched_at < begin)
      if end:
--- 1141,1149 ----
      """Return instances that were continuously active over the given window"""
      session = get_session()
      query = session.query(models.Instance).\
! options(joinedload_all('fixed_ips.floating_ips')).\
                     options(joinedload('security_groups')).\
! options(joinedload_all('fixed_ips.network')).\
                     options(joinedload('instance_type')).\
                     filter(models.Instance.launched_at < begin)
      if end:

Related branches

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Medium
status: New → In Progress
Thierry Carrez (ttx)
Changed in nova:
assignee: nobody → Kevin Bringard (kbringard)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-4
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-4 → 2011.3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.