PEP8 fixes, spelling fixes

Change-Id: Icbc3895637e80671897d103720568067afb02b5b
This commit is contained in:
lungc 2014-10-22 20:05:05 -07:00
parent a56dc45b98
commit 24e3a0da7d
8 changed files with 12 additions and 10 deletions

View File

@ -192,4 +192,4 @@ class Amphora(BaseDataModel):
self.load_balancer_id = load_balancer_id
self.host_id = host_id
self.status = status
self.load_balancer = load_balancer
self.load_balancer = load_balancer

View File

@ -1,6 +1,6 @@
The migrations in the alembic/versions contain the migrations.
Before runnign this migration ensure that the database ocatavia exists.
Before running this migration ensure that the database octavia exists.
Currently the database connection string is in octavia/db/migration/alembic.ini
but this should eventually be pulled out into an octavia configuration file.
@ -13,4 +13,4 @@ To migrate to the most current version run:
$ alembic upgrade head
To downgrade one migration run:
$ alembic downgrade -1
$ alembic downgrade -1

View File

@ -81,4 +81,4 @@ def run_migrations_online():
if context.is_offline_mode():
run_migrations_offline()
else:
run_migrations_online()
run_migrations_online()

View File

@ -369,4 +369,4 @@ def downgrade():
op.drop_table(u'session_persistence_type')
op.drop_table(u'algorithm')
op.drop_table(u'protocol')
op.drop_table(u'health_monitor_type')
op.drop_table(u'health_monitor_type')

View File

@ -324,4 +324,4 @@ class Amphora(base_models.BASE):
status = sa.Column(
sa.String(36),
sa.ForeignKey("provisioning_status.name",
name="fk_container_provisioning_status_name"))
name="fk_container_provisioning_status_name"))

View File

@ -71,7 +71,8 @@ def get_cache(url='memory://'):
parameters = parse.parse_qsl(query)
kwargs = {'options': dict(parameters)}
mgr = driver.DriverManager('octavia.openstack.common.cache.backends', backend,
mgr = driver.DriverManager('octavia.openstack.common.cache.backends',
backend,
invoke_on_load=True,
invoke_args=[parsed],
invoke_kwds=kwargs)

View File

@ -67,8 +67,9 @@ class LimitingReader(object):
return result
@versionutils.deprecated(as_of=versionutils.deprecated.JUNO,
in_favor_of='octavia.middleware.RequestBodySizeLimiter')
@versionutils.deprecated(
as_of=versionutils.deprecated.JUNO,
in_favor_of='octavia.middleware.RequestBodySizeLimiter')
class RequestBodySizeLimiter(base.Middleware):
"""Limit the size of incoming requests."""

View File

@ -64,4 +64,4 @@ class OctaviaDBTestBase(test_base.DbTestCase):
for name in name_list:
with session.begin():
model = model_cls(name=name)
session.add(model)
session.add(model)