Browse Source

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>
tags/v3.0.0.rc0
Hang Li 4 months ago
parent
commit
bd05f693f2
10 changed files with 0 additions and 32 deletions
  1. +0
    -3
      sysinv/sysinv/sysinv/sysinv/objects/cluster.py
  2. +0
    -4
      sysinv/sysinv/sysinv/sysinv/objects/interface_datanetwork.py
  3. +0
    -3
      sysinv/sysinv/sysinv/sysinv/objects/lldp_agent.py
  4. +0
    -3
      sysinv/sysinv/sysinv/sysinv/objects/lldp_neighbour.py
  5. +0
    -3
      sysinv/sysinv/sysinv/sysinv/objects/peer.py
  6. +0
    -3
      sysinv/sysinv/sysinv/sysinv/objects/remote_logging.py
  7. +0
    -3
      sysinv/sysinv/sysinv/sysinv/objects/sensor.py
  8. +0
    -3
      sysinv/sysinv/sysinv/sysinv/objects/service.py
  9. +0
    -3
      sysinv/sysinv/sysinv/sysinv/objects/storage.py
  10. +0
    -4
      sysinv/sysinv/sysinv/sysinv/objects/storage_tier.py

+ 0
- 3
sysinv/sysinv/sysinv/sysinv/objects/cluster.py View File

@@ -12,9 +12,6 @@ from sysinv.db import api as db_api
from sysinv.objects import base
from sysinv.objects import utils

from sysinv.openstack.common import log
LOG = log.getLogger(__name__)


def get_peer_values(field, db_object):
"""Retrieves the list of peers associated with the cluster."""

+ 0
- 4
sysinv/sysinv/sysinv/sysinv/objects/interface_datanetwork.py View File

@@ -12,10 +12,6 @@ from sysinv.db import api as db_api
from sysinv.objects import base
from sysinv.objects import utils

from oslo_log import log

LOG = log.getLogger(__name__)


def _get_mtu(field, db_object):
mtu = None

+ 0
- 3
sysinv/sysinv/sysinv/sysinv/objects/lldp_agent.py View File

@@ -12,9 +12,6 @@ from sysinv.common import constants
from sysinv.db import api as db_api
from sysinv.objects import base
from sysinv.objects import utils
from sysinv.openstack.common import log

LOG = log.getLogger(__name__)


def get_lldp_tlvs(field, db_object):

+ 0
- 3
sysinv/sysinv/sysinv/sysinv/objects/lldp_neighbour.py View File

@@ -11,9 +11,6 @@ from sysinv.common import constants
from sysinv.db import api as db_api
from sysinv.objects import base
from sysinv.objects import utils
from sysinv.openstack.common import log

LOG = log.getLogger(__name__)


def get_lldp_tlvs(field, db_object):

+ 0
- 3
sysinv/sysinv/sysinv/sysinv/objects/peer.py View File

@@ -12,9 +12,6 @@ from sysinv.db import api as db_api
from sysinv.objects import base
from sysinv.objects import utils

from sysinv.openstack.common import log
LOG = log.getLogger(__name__)


def get_host_values(field, db_object):
"""Retrieves the list of hosts associated with peer."""

+ 0
- 3
sysinv/sysinv/sysinv/sysinv/objects/remote_logging.py View File

@@ -12,9 +12,6 @@ from sysinv.db import api as db_api
from sysinv.objects import base
from sysinv.objects import utils

from sysinv.openstack.common import log
LOG = log.getLogger(__name__)


class RemoteLogging(base.SysinvObject):


+ 0
- 3
sysinv/sysinv/sysinv/sysinv/objects/sensor.py View File

@@ -12,9 +12,6 @@ from sysinv.db import api as db_api
from sysinv.objects import base
from sysinv.objects import utils

from sysinv.openstack.common import log
LOG = log.getLogger(__name__)


class Sensor(base.SysinvObject):
dbapi = db_api.get_instance()

+ 0
- 3
sysinv/sysinv/sysinv/sysinv/objects/service.py View File

@@ -8,9 +8,6 @@ from sysinv.db import api as db_api
from sysinv.objects import base
from sysinv.objects import utils

from sysinv.openstack.common import log
LOG = log.getLogger(__name__)


class Service(base.SysinvObject):


+ 0
- 3
sysinv/sysinv/sysinv/sysinv/objects/storage.py View File

@@ -14,9 +14,6 @@ from sysinv.objects import utils

from sqlalchemy.orm import exc

from sysinv.openstack.common import log

LOG = log.getLogger(__name__)

dbapi = db_api.get_instance()


+ 0
- 4
sysinv/sysinv/sysinv/sysinv/objects/storage_tier.py View File

@@ -14,10 +14,6 @@ from sysinv.db import api as db_api
from sysinv.objects import base
from sysinv.objects import utils

from sysinv.openstack.common import log

LOG = log.getLogger(__name__)


def get_backend_uuid(field, db_object):
"""Retrieves backend uuid."""

Loading…
Cancel
Save