TrivialFix: Remove cfg import unused
This patch removes cfg import unused in murano/api/middleware/version_negotiation.py murano/api/versions.py murano/db/catalog/api.py murano/engine/system/test_fixture.py murano/policy/model_policy_enforcer.py murano/tests/unit/cmd/test_api_workers.py murano/tests/unit/cmd/test_engine_workers.py Change-Id: I0f12f15e4def84550ef5bde0840006211cac7809
This commit is contained in:
@@ -18,14 +18,12 @@ and/or Accept headers and attempts to negotiate an API controller to
|
|||||||
return
|
return
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from oslo_config import cfg
|
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
|
|
||||||
from murano.api import versions
|
from murano.api import versions
|
||||||
from murano.common.i18n import _LW
|
from murano.common.i18n import _LW
|
||||||
from murano.common import wsgi
|
from murano.common import wsgi
|
||||||
|
|
||||||
CONF = cfg.CONF
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@@ -12,7 +12,6 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo_config import cfg
|
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
from six.moves import http_client
|
from six.moves import http_client
|
||||||
import webob.dec
|
import webob.dec
|
||||||
@@ -20,9 +19,6 @@ import webob.dec
|
|||||||
from murano.common import wsgi
|
from murano.common import wsgi
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
|
||||||
|
|
||||||
|
|
||||||
class Controller(object):
|
class Controller(object):
|
||||||
|
|
||||||
"""A wsgi controller that reports which API versions are supported."""
|
"""A wsgi controller that reports which API versions are supported."""
|
||||||
|
@@ -12,7 +12,6 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo_config import cfg
|
|
||||||
from oslo_db import api as oslo_db_api
|
from oslo_db import api as oslo_db_api
|
||||||
from oslo_db import exception as db_exceptions
|
from oslo_db import exception as db_exceptions
|
||||||
from oslo_db.sqlalchemy import utils
|
from oslo_db.sqlalchemy import utils
|
||||||
@@ -29,8 +28,6 @@ from murano.db import session as db_session
|
|||||||
from murano.common.i18n import _, _LW
|
from murano.common.i18n import _, _LW
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
|
||||||
|
|
||||||
SEARCH_MAPPING = {'fqn': 'fully_qualified_name',
|
SEARCH_MAPPING = {'fqn': 'fully_qualified_name',
|
||||||
'name': 'name',
|
'name': 'name',
|
||||||
'created': 'created'
|
'created': 'created'
|
||||||
|
@@ -13,17 +13,12 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from oslo_config import cfg
|
|
||||||
|
|
||||||
import testtools
|
import testtools
|
||||||
|
|
||||||
from murano.dsl import dsl
|
from murano.dsl import dsl
|
||||||
from murano.dsl import helpers
|
from murano.dsl import helpers
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
|
||||||
|
|
||||||
|
|
||||||
@dsl.name('io.murano.test.TestFixture')
|
@dsl.name('io.murano.test.TestFixture')
|
||||||
class TestFixture(object):
|
class TestFixture(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@@ -20,7 +20,6 @@ try:
|
|||||||
import congressclient.v1.client as congress_client
|
import congressclient.v1.client as congress_client
|
||||||
except ImportError as congress_client_import_error:
|
except ImportError as congress_client_import_error:
|
||||||
congress_client = None
|
congress_client = None
|
||||||
from oslo_config import cfg
|
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
|
|
||||||
from murano.common import auth_utils
|
from murano.common import auth_utils
|
||||||
@@ -30,7 +29,6 @@ from murano.policy.modify.actions import action_manager as am
|
|||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
CONF = cfg.CONF
|
|
||||||
|
|
||||||
|
|
||||||
class ValidationError(Exception):
|
class ValidationError(Exception):
|
||||||
|
@@ -14,7 +14,6 @@ import mock
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
from oslo_concurrency import processutils
|
from oslo_concurrency import processutils
|
||||||
from oslo_config import cfg
|
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
|
|
||||||
from murano.cmd import api
|
from murano.cmd import api
|
||||||
@@ -23,8 +22,6 @@ from murano.common import config
|
|||||||
from murano.common import policy
|
from murano.common import policy
|
||||||
from murano.tests.unit import base
|
from murano.tests.unit import base
|
||||||
|
|
||||||
CONF = cfg.CONF
|
|
||||||
|
|
||||||
|
|
||||||
class TestAPIWorkers(base.MuranoTestCase):
|
class TestAPIWorkers(base.MuranoTestCase):
|
||||||
|
|
||||||
|
@@ -15,15 +15,12 @@
|
|||||||
import mock
|
import mock
|
||||||
|
|
||||||
from oslo_concurrency import processutils
|
from oslo_concurrency import processutils
|
||||||
from oslo_config import cfg
|
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
|
|
||||||
from murano.cmd import engine
|
from murano.cmd import engine
|
||||||
from murano.common import config
|
from murano.common import config
|
||||||
from murano.tests.unit import base
|
from murano.tests.unit import base
|
||||||
|
|
||||||
CONF = cfg.CONF
|
|
||||||
|
|
||||||
|
|
||||||
class TestEngineWorkers(base.MuranoTestCase):
|
class TestEngineWorkers(base.MuranoTestCase):
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user