Eliminate unnecessary import modules in the objects directory
In the config project,"/sysinv/sysinv/sysinv/sysinv/objects/" 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: I35f35ffdf1b9b00a97c259b47420dee3f1e4d939 Partial-Bug: #1844095 Signed-off-by: Hang Li <lihang0166@fiberhome.com>
This commit is contained in:
parent
6f04c28cd4
commit
bd05f693f2
|
@ -12,9 +12,6 @@ from sysinv.db import api as db_api
|
||||||
from sysinv.objects import base
|
from sysinv.objects import base
|
||||||
from sysinv.objects import utils
|
from sysinv.objects import utils
|
||||||
|
|
||||||
from sysinv.openstack.common import log
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
def get_peer_values(field, db_object):
|
def get_peer_values(field, db_object):
|
||||||
"""Retrieves the list of peers associated with the cluster."""
|
"""Retrieves the list of peers associated with the cluster."""
|
||||||
|
|
|
@ -12,10 +12,6 @@ from sysinv.db import api as db_api
|
||||||
from sysinv.objects import base
|
from sysinv.objects import base
|
||||||
from sysinv.objects import utils
|
from sysinv.objects import utils
|
||||||
|
|
||||||
from oslo_log import log
|
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
def _get_mtu(field, db_object):
|
def _get_mtu(field, db_object):
|
||||||
mtu = None
|
mtu = None
|
||||||
|
|
|
@ -12,9 +12,6 @@ from sysinv.common import constants
|
||||||
from sysinv.db import api as db_api
|
from sysinv.db import api as db_api
|
||||||
from sysinv.objects import base
|
from sysinv.objects import base
|
||||||
from sysinv.objects import utils
|
from sysinv.objects import utils
|
||||||
from sysinv.openstack.common import log
|
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
def get_lldp_tlvs(field, db_object):
|
def get_lldp_tlvs(field, db_object):
|
||||||
|
|
|
@ -11,9 +11,6 @@ from sysinv.common import constants
|
||||||
from sysinv.db import api as db_api
|
from sysinv.db import api as db_api
|
||||||
from sysinv.objects import base
|
from sysinv.objects import base
|
||||||
from sysinv.objects import utils
|
from sysinv.objects import utils
|
||||||
from sysinv.openstack.common import log
|
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
def get_lldp_tlvs(field, db_object):
|
def get_lldp_tlvs(field, db_object):
|
||||||
|
|
|
@ -12,9 +12,6 @@ from sysinv.db import api as db_api
|
||||||
from sysinv.objects import base
|
from sysinv.objects import base
|
||||||
from sysinv.objects import utils
|
from sysinv.objects import utils
|
||||||
|
|
||||||
from sysinv.openstack.common import log
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
def get_host_values(field, db_object):
|
def get_host_values(field, db_object):
|
||||||
"""Retrieves the list of hosts associated with peer."""
|
"""Retrieves the list of hosts associated with peer."""
|
||||||
|
|
|
@ -12,9 +12,6 @@ from sysinv.db import api as db_api
|
||||||
from sysinv.objects import base
|
from sysinv.objects import base
|
||||||
from sysinv.objects import utils
|
from sysinv.objects import utils
|
||||||
|
|
||||||
from sysinv.openstack.common import log
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class RemoteLogging(base.SysinvObject):
|
class RemoteLogging(base.SysinvObject):
|
||||||
|
|
||||||
|
|
|
@ -12,9 +12,6 @@ from sysinv.db import api as db_api
|
||||||
from sysinv.objects import base
|
from sysinv.objects import base
|
||||||
from sysinv.objects import utils
|
from sysinv.objects import utils
|
||||||
|
|
||||||
from sysinv.openstack.common import log
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class Sensor(base.SysinvObject):
|
class Sensor(base.SysinvObject):
|
||||||
dbapi = db_api.get_instance()
|
dbapi = db_api.get_instance()
|
||||||
|
|
|
@ -8,9 +8,6 @@ from sysinv.db import api as db_api
|
||||||
from sysinv.objects import base
|
from sysinv.objects import base
|
||||||
from sysinv.objects import utils
|
from sysinv.objects import utils
|
||||||
|
|
||||||
from sysinv.openstack.common import log
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class Service(base.SysinvObject):
|
class Service(base.SysinvObject):
|
||||||
|
|
||||||
|
|
|
@ -14,9 +14,6 @@ from sysinv.objects import utils
|
||||||
|
|
||||||
from sqlalchemy.orm import exc
|
from sqlalchemy.orm import exc
|
||||||
|
|
||||||
from sysinv.openstack.common import log
|
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
dbapi = db_api.get_instance()
|
dbapi = db_api.get_instance()
|
||||||
|
|
||||||
|
|
|
@ -14,10 +14,6 @@ from sysinv.db import api as db_api
|
||||||
from sysinv.objects import base
|
from sysinv.objects import base
|
||||||
from sysinv.objects import utils
|
from sysinv.objects import utils
|
||||||
|
|
||||||
from sysinv.openstack.common import log
|
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
def get_backend_uuid(field, db_object):
|
def get_backend_uuid(field, db_object):
|
||||||
"""Retrieves backend uuid."""
|
"""Retrieves backend uuid."""
|
||||||
|
|
Loading…
Reference in New Issue