Fix for bug 803186 that fixes the ability for nova-api to run from a source checkout.
This commit is contained in:
commit
04dcf46f1f
|
@ -23,8 +23,14 @@ Starts both the EC2 and OpenStack APIs in separate processes.
|
|||
|
||||
"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
possible_topdir = os.path.normpath(os.path.join(os.path.abspath(
|
||||
sys.argv[0]), os.pardir, os.pardir))
|
||||
if os.path.exists(os.path.join(possible_topdir, "nova", "__init__.py")):
|
||||
sys.path.insert(0, possible_topdir)
|
||||
|
||||
import nova.service
|
||||
import nova.utils
|
||||
|
||||
|
|
|
@ -58,8 +58,7 @@ provider_fw_rules = Table('provider_fw_rules', meta,
|
|||
Column('to_port', Integer()),
|
||||
Column('cidr',
|
||||
String(length=255, convert_unicode=False, assert_unicode=None,
|
||||
unicode_error=None, _warn_on_bytestring=False))
|
||||
)
|
||||
unicode_error=None, _warn_on_bytestring=False)))
|
||||
|
||||
|
||||
def upgrade(migrate_engine):
|
||||
|
|
Loading…
Reference in New Issue