No __name__ test in the db migration script
Bug #1290708 reported by
Gauvain Pocentek
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack DBaaS (Trove) |
Fix Released
|
Low
|
Gauvain Pocentek |
Bug Description
trove/db/
This breaks the openstack-doc-tools script used to discover the configuration options (every .py file is imported by this script).
Changed in trove: | |
assignee: | nobody → Gauvain Pocentek (gpocentek) |
status: | New → In Progress |
Changed in trove: | |
importance: | Undecided → Low |
milestone: | none → icehouse-rc1 |
Changed in trove: | |
status: | Fix Committed → Fix Released |
Changed in trove: | |
milestone: | icehouse-rc1 → 2014.1 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/79176 /git.openstack. org/cgit/ openstack/ trove/commit/ ?id=a8abde067e8 a79e4d6ff5b0012 724fe1adcab7b8
Committed: https:/
Submitter: Jenkins
Branch: master
commit a8abde067e8a79e 4d6ff5b0012724f e1adcab7b8
Author: Gauvain Pocentek <email address hidden>
Date: Sun Mar 9 08:31:11 2014 +0100
Don't run main() on import
This patch adds the usual __name__ test to the database migration script to doc-tools) .
avoid execution of the main() function in case of a module import (which
happens when running the configuration options discovery script from
openstack-
Closes-Bug: #1290708 2652a4aae8ec1f3 83c43b5bc56
Change-Id: I863a36bcbbbbb0