Browse Source

Remove unused LOG variables

TrivialFix
Change-Id: I84f80aa75fb455039e5b56ae4d49a5f77db9097a
changes/97/546097/2
Takashi NATSUME 4 years ago
parent
commit
5133a543b9
  1. 4
      nova/api/openstack/compute/extension_info.py
  2. 3
      nova/api/openstack/compute/flavor_manage.py
  3. 4
      nova/api/openstack/placement/handlers/allocation_candidate.py
  4. 1
      nova/cmd/compute.py
  5. 2
      nova/objects/flavor.py
  6. 4
      nova/tests/functional/regressions/test_bug_1735407.py
  7. 4
      nova/tests/unit/objects/test_objects.py
  8. 4
      nova/virt/libvirt/volume/nfs.py
  9. 2
      nova/virt/powervm/host.py

4
nova/api/openstack/compute/extension_info.py

@ -12,15 +12,11 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
import webob.exc
from nova.api.openstack import wsgi
from nova.policies import extensions as ext_policies
LOG = logging.getLogger(__name__)
EXTENSION_LIST = [
{

3
nova/api/openstack/compute/flavor_manage.py

@ -12,8 +12,6 @@
import webob
from oslo_log import log as logging
from nova.api.openstack import api_version_request
from nova.api.openstack.compute.schemas import flavor_manage
from nova.api.openstack.compute.views import flavors as flavors_view
@ -27,7 +25,6 @@ from nova.policies import flavor_manage as fm_policies
from nova import policy
LOG = logging.getLogger(__name__)
ALIAS = "os-flavor-manage"

4
nova/api/openstack/placement/handlers/allocation_candidate.py

@ -14,7 +14,6 @@
import collections
from oslo_log import log as logging
from oslo_serialization import jsonutils
from oslo_utils import encodeutils
from oslo_utils import timeutils
@ -30,9 +29,6 @@ from nova.i18n import _
from nova.objects import resource_provider as rp_obj
LOG = logging.getLogger(__name__)
def _transform_allocation_requests_dict(alloc_reqs):
"""Turn supplied list of AllocationRequest objects into a list of
allocations dicts keyed by resource provider uuid of resources involved

1
nova/cmd/compute.py

@ -37,7 +37,6 @@ from nova import utils
from nova import version
CONF = nova.conf.CONF
LOG = logging.getLogger('nova.compute')
def main():

2
nova/objects/flavor.py

@ -14,7 +14,6 @@
from oslo_db import exception as db_exc
from oslo_db.sqlalchemy import utils as sqlalchemyutils
from oslo_log import log as logging
from oslo_utils import versionutils
from sqlalchemy import or_
from sqlalchemy.orm import joinedload
@ -33,7 +32,6 @@ from nova.objects import base
from nova.objects import fields
LOG = logging.getLogger(__name__)
OPTIONAL_FIELDS = ['extra_specs', 'projects']
# Remove these fields in version 2.0 of the object.
DEPRECATED_FIELDS = ['deleted', 'deleted_at']

4
nova/tests/functional/regressions/test_bug_1735407.py

@ -10,8 +10,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from oslo_log import log as logging
from nova import test
from nova.tests import fixtures as nova_fixtures
from nova.tests.functional import integrated_helpers
@ -21,8 +19,6 @@ import nova.tests.unit.image.fake
from nova.tests.unit import policy_fixture
from nova.virt import fake
LOG = logging.getLogger(__name__)
class TestParallelEvacuationWithServerGroup(
test.TestCase, integrated_helpers.InstanceHelperMixin):

4
nova/tests/unit/objects/test_objects.py

@ -21,7 +21,6 @@ import pprint
import fixtures
import mock
from oslo_log import log
from oslo_utils import timeutils
from oslo_versionedobjects import base as ovo_base
from oslo_versionedobjects import exception as ovo_exc
@ -40,9 +39,6 @@ from nova.tests.unit import fake_notifier
from nova import utils
LOG = log.getLogger(__name__)
class MyOwnedObject(base.NovaPersistentObject, base.NovaObject):
VERSION = '1.0'
fields = {'baz': fields.IntegerField()}

4
nova/virt/libvirt/volume/nfs.py

@ -11,13 +11,9 @@
# under the License.
from oslo_log import log as logging
import nova.conf
from nova.virt.libvirt.volume import fs
LOG = logging.getLogger(__name__)
CONF = nova.conf.CONF

2
nova/virt/powervm/host.py

@ -14,14 +14,12 @@
import math
from oslo_log import log as logging
from oslo_serialization import jsonutils
from nova import conf as cfg
from nova.objects import fields
LOG = logging.getLogger(__name__)
CONF = cfg.CONF
# Power VM hypervisor info

Loading…
Cancel
Save