Remove nova.flags imports from scheduler code

nova.flags is no longer needed.  nova.config is now used.

Removes FLAGS and LOG from baremetal_host_manager completely, which
doesn't use them.

Change-Id: Ia1a4597e28e8ebb8adc5a77b8b006aabe354ac15
This commit is contained in:
Chris Behrens
2012-11-15 21:45:59 +00:00
parent e18bc3944e
commit 8956843e9d
7 changed files with 0 additions and 12 deletions

View File

@@ -18,15 +18,9 @@
Manage hosts in the current zone.
"""
from nova import flags
from nova.openstack.common import log as logging
from nova.scheduler import host_manager
FLAGS = flags.FLAGS
LOG = logging.getLogger(__name__)
class BaremetalNodeState(host_manager.HostState):
"""Mutable and immutable information tracked for a host.
This is an attempt to remove the ad-hoc data structures

View File

@@ -25,7 +25,6 @@ import random
from nova import config
from nova import exception
from nova import flags
from nova.scheduler import driver
CONF = config.CONF

View File

@@ -31,7 +31,6 @@ from nova.compute import vm_states
from nova import config
from nova import db
from nova import exception
from nova import flags
from nova import notifications
from nova.openstack.common import cfg
from nova.openstack.common import importutils

View File

@@ -30,7 +30,6 @@ from nova import config
import nova.context
from nova import db
from nova import exception
from nova import flags
from nova import manager
from nova import notifications
from nova.openstack.common import cfg

View File

@@ -28,7 +28,6 @@ https://bugs.launchpad.net/nova/+bug/1009681
"""
from nova import config
from nova import flags
from nova.openstack.common import cfg
from nova.openstack.common import importutils
from nova.scheduler import driver

View File

@@ -19,7 +19,6 @@ Client side of the scheduler manager RPC API.
"""
from nova import config
from nova import flags
from nova.openstack.common import jsonutils
import nova.openstack.common.rpc.proxy

View File

@@ -27,7 +27,6 @@ import json
import os
from nova import config
from nova import flags
from nova.openstack.common import cfg
from nova.openstack.common import log as logging
from nova.openstack.common import timeutils