deal with flake8 errors in core code
Change-Id: I8ba64e3a5579427afe52a34e7445b9e6eb65a74c
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
|
||||
from sqlalchemy import MetaData, Table, Column
|
||||
from daisy.db.sqlalchemy.migrate_repo.schema import Text
|
||||
|
||||
|
||||
group_list = Column('group_list', Text())
|
||||
|
||||
|
||||
@@ -25,4 +25,3 @@ def upgrade(migrate_engine):
|
||||
|
||||
hosts = Table('hosts', meta, autoload=True)
|
||||
hosts.create_column(group_list)
|
||||
|
||||
|
||||
@@ -27,4 +27,3 @@ def upgrade(migrate_engine):
|
||||
cinder_volumes = Table('cinder_volumes', meta, autoload=True)
|
||||
cinder_volumes.create_column(root_pwd)
|
||||
cinder_volumes.create_column(resource_pools)
|
||||
|
||||
|
||||
@@ -49,4 +49,3 @@ def upgrade(migrate_engine):
|
||||
meta.bind = migrate_engine
|
||||
tables = [define_optical_switchs_table(meta), ]
|
||||
create_tables(tables)
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@ meta = MetaData()
|
||||
outband_vip = Column('outband_vip', String(255))
|
||||
provider_public_vip = Column('provider_public_vip', String(255))
|
||||
|
||||
|
||||
def upgrade(migrate_engine):
|
||||
meta.bind = migrate_engine
|
||||
role = Table('roles', meta, autoload=True)
|
||||
role.create_column(outband_vip)
|
||||
role.create_column(provider_public_vip)
|
||||
|
||||
|
||||
@@ -8,4 +8,3 @@ def upgrade(migrate_engine):
|
||||
meta.bind = migrate_engine
|
||||
clusters = Table('clusters', meta, autoload=True)
|
||||
clusters.create_column(use_provider_ha)
|
||||
|
||||
|
||||
@@ -8,4 +8,3 @@ def upgrade(migrate_engine):
|
||||
meta.bind = migrate_engine
|
||||
networks = Table('networks', meta, autoload=True)
|
||||
networks.create_column(custom_name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user