From c1a81af182267bbf15272bb3e926c499939a2c29 Mon Sep 17 00:00:00 2001 From: Cao Xuan Hoang Date: Thu, 25 Aug 2016 13:36:44 +0700 Subject: [PATCH] Clean imports in code In some part in the code we import objects. In the Openstack style guidelines they recommend to import only modules. http://docs.openstack.org/developer/hacking/#imports Change-Id: I9c1ebe645b7dc8379f60e13ef6ea43bbe6ab1bcb --- osc_lib/cli/client_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osc_lib/cli/client_config.py b/osc_lib/cli/client_config.py index 6a07722..fc6b7c1 100644 --- a/osc_lib/cli/client_config.py +++ b/osc_lib/cli/client_config.py @@ -15,7 +15,7 @@ import logging -from os_client_config.config import OpenStackConfig +from os_client_config import config LOG = logging.getLogger(__name__) @@ -23,7 +23,7 @@ LOG = logging.getLogger(__name__) # Sublcass OpenStackConfig in order to munge config values # before auth plugins are loaded -class OSC_Config(OpenStackConfig): +class OSC_Config(config.OpenStackConfig): def _auth_select_default_plugin(self, config): """Select a default plugin based on supplied arguments