Invalid method defined init_engine in trove/tests/util/__init__.py

Bug #1261169 reported by Sushil Kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Low
Sushil Kumar

Bug Description

There is an invalid method definition in trove/tests/util/__init__.py

    def init_engine(user, password, host):
        return create_engine("mysql://%s:%s@%s:3306" %
                             (user, password, host),
                             pool_recycle=1800, echo=True)
        self.engine = engine
        self.use_flush = use_flush

This method has got statements after return which are of no use.

Those extra statements should be removed

Changed in trove:
assignee: nobody → Sushil Kumar (sushil-kumar2)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

Fix proposed to branch: master
Review: https://review.openstack.org/62235

Changed in trove:
status: New → In Progress
Changed in trove:
milestone: none → icehouse-2
importance: Undecided → Low
Changed in trove:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/62235
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=2ea9a4fedc4d21bea790052d6eb3172badd570bf
Submitter: Jenkins
Branch: master

commit 2ea9a4fedc4d21bea790052d6eb3172badd570bf
Author: Sushil Kumar <email address hidden>
Date: Sun Dec 15 15:26:20 2013 +0000

    Cleans the method init_engine

    Reasons:
    - init_engine contains code after return statement,
      which is of no use.
    - the statements used are also of no purpose as
      they use unavailable variables.

    Change:
    - Code lines after return statement are removed.

    Change-Id: Ibfd1f0de1d9200c0f1a724345fa9ef744da1ce7e
    Closes-Bug: #1261169

Revision history for this message
Thierry Carrez (ttx) wrote :

Should not be marked FixReleased until released in a milestone.

Changed in trove:
status: Fix Released → Fix Committed
Thierry Carrez (ttx)
Changed in trove:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in trove:
milestone: icehouse-2 → 2014.1
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.