Eliminate unnecessary imported modules

In the config project,"/sysinv/sysinv/sysinv/sysinv/db/" directory
has many files imported into the "log" but not used.
At the same time,I built a system of simplex with the latest ISO
of the community. When the system was built,the code was changed.
The system worked well and the other functional modules were not
affected.So I agree we should delete them.

Change-Id: Ibe1f96154d6575d701067e43665b336f3bf5bfec
Partial-Bug: #1844095
Signed-off-by: Hang Li <lihang0166@fiberhome.com>
This commit is contained in:
Hang Li 2019-09-16 14:59:14 +08:00
parent 6f04c28cd4
commit b2198ead71
17 changed files with 0 additions and 58 deletions

View File

@ -8,9 +8,6 @@
from sqlalchemy import Column, MetaData, Table
from sqlalchemy import String
from sqlalchemy import Integer
from sysinv.openstack.common import log
LOG = log.getLogger(__name__)
def upgrade(migrate_engine):

View File

@ -7,15 +7,12 @@
from sqlalchemy import Column, MetaData, String, Table
from sysinv.openstack.common import log
from sysinv.common import constants
ENGINE = 'InnoDB'
CHARSET = 'utf8'
LOG = log.getLogger(__name__)
def _populate_rpm_type(idisk_table):

View File

@ -11,13 +11,9 @@ from datetime import datetime
from sqlalchemy import Integer, DateTime, Boolean, String
from sqlalchemy import Column, MetaData, Table, ForeignKey, select
from sysinv.openstack.common import log
ENGINE = 'InnoDB'
CHARSET = 'utf8'
LOG = log.getLogger(__name__)
def upgrade(migrate_engine):
"""This database upgrade replaces the i_istorconfig table with five

View File

@ -10,13 +10,9 @@ from sqlalchemy import MetaData
from sqlalchemy import String
from sqlalchemy import Table
from sysinv.openstack.common import log
ENGINE = 'InnoDB'
CHARSET = 'utf8'
LOG = log.getLogger(__name__)
def upgrade(migrate_engine):
"""This database upgrade updates the i_host table with the

View File

@ -8,15 +8,11 @@
from sqlalchemy import MetaData
from sqlalchemy import Table
from sysinv.openstack.common import log
import json
ENGINE = 'InnoDB'
CHARSET = 'utf8'
LOG = log.getLogger(__name__)
def upgrade(migrate_engine):
meta = MetaData()

View File

@ -9,13 +9,9 @@ from sqlalchemy import String
from sqlalchemy import Column, MetaData, Table
from migrate.changeset import UniqueConstraint
from sysinv.openstack.common import log
ENGINE = 'InnoDB'
CHARSET = 'utf8'
LOG = log.getLogger(__name__)
def upgrade(migrate_engine):

View File

@ -6,15 +6,12 @@
#
from sqlalchemy import MetaData, Table
from sysinv.openstack.common import log
import json
ENGINE = 'InnoDB'
CHARSET = 'utf8'
LOG = log.getLogger(__name__)
def upgrade(migrate_engine):
meta = MetaData()

View File

@ -8,13 +8,9 @@
from sqlalchemy import Integer, DateTime
from sqlalchemy import Column, MetaData, Table, ForeignKey
from sysinv.openstack.common import log
ENGINE = 'InnoDB'
CHARSET = 'utf8'
LOG = log.getLogger(__name__)
def upgrade(migrate_engine):
"""

View File

@ -9,12 +9,9 @@ from sqlalchemy import Column, MetaData, Table
from sqlalchemy import Integer
from sysinv.common import constants
from sysinv.common import utils as cutils
from sysinv.openstack.common import log
from sysinv.api.controllers.v1 import address_pool
from tsconfig.tsconfig import system_mode
LOG = log.getLogger(__name__)
def _populate_address_fields(address_pool_table, addresses_table, networks_table):
prefix_to_field_name = {

View File

@ -7,11 +7,9 @@
from sqlalchemy import Column, MetaData, Table
from sqlalchemy import DateTime, Integer, String, Text
from sysinv.openstack.common import log
ENGINE = 'InnoDB'
CHARSET = 'utf8'
LOG = log.getLogger(__name__)
def upgrade(migrate_engine):

View File

@ -8,13 +8,9 @@
from sqlalchemy import Integer, DateTime, String, Text
from sqlalchemy import Column, MetaData, Table, ForeignKey
from sysinv.openstack.common import log
ENGINE = 'InnoDB'
CHARSET = 'utf8'
LOG = log.getLogger(__name__)
def upgrade(migrate_engine):
"""

View File

@ -8,13 +8,9 @@
from sqlalchemy import Integer, DateTime, String
from sqlalchemy import Column, MetaData, Table, ForeignKey
from sysinv.openstack.common import log
ENGINE = 'InnoDB'
CHARSET = 'utf8'
LOG = log.getLogger(__name__)
def upgrade(migrate_engine):
"""

View File

@ -8,13 +8,9 @@
from sqlalchemy import DateTime, String, Integer, Boolean
from sqlalchemy import Column, MetaData, Table
from sysinv.openstack.common import log
ENGINE = 'InnoDB'
CHARSET = 'utf8'
LOG = log.getLogger(__name__)
def upgrade(migrate_engine):
"""

View File

@ -8,11 +8,9 @@
from sqlalchemy import Column, MetaData, Table
from sqlalchemy import DateTime, Integer, String
from sqlalchemy import ForeignKey, UniqueConstraint
from sysinv.openstack.common import log
ENGINE = 'InnoDB'
CHARSET = 'utf8'
LOG = log.getLogger(__name__)
def upgrade(migrate_engine):

View File

@ -9,11 +9,9 @@
from sqlalchemy import Column, MetaData, Table
from sqlalchemy import String
from sysinv.openstack.common import log
ENGINE = 'InnoDB'
CHARSET = 'utf8'
LOG = log.getLogger(__name__)
def upgrade(migrate_engine):

View File

@ -8,13 +8,9 @@
from sqlalchemy import DateTime, String, Text, Integer
from sqlalchemy import Column, MetaData, Table, UniqueConstraint, ForeignKey
from sysinv.openstack.common import log
ENGINE = 'InnoDB'
CHARSET = 'utf8'
LOG = log.getLogger(__name__)
def upgrade(migrate_engine):
"""

View File

@ -8,13 +8,9 @@
from sqlalchemy import DateTime, String, Integer
from sqlalchemy import Column, MetaData, Table, ForeignKey
from sysinv.openstack.common import log
ENGINE = 'InnoDB'
CHARSET = 'utf8'
LOG = log.getLogger(__name__)
def upgrade(migrate_engine):
"""