Clean imports in code

This patch set modifies lines which are importing objects
instead of modules. As per openstack import guide lines, user should
import modules in a file not objects.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: I2c0404f3137505deff935c91df0da40c3c890954
This commit is contained in:
Cao Xuan Hoang 2016-11-17 10:24:43 +07:00
parent f19a89df9d
commit 39a1840da6
2 changed files with 4 additions and 4 deletions

View File

@ -22,10 +22,10 @@ import sys
from oslo_log import log as logging
logger = logging.getLogger(__name__)
from boto.cloudformation import CloudFormationConnection
from boto import cloudformation
class BotoClient(CloudFormationConnection):
class BotoClient(cloudformation.CloudFormationConnection):
'''
Wrapper class for boto CloudFormationConnection class
'''

View File

@ -23,10 +23,10 @@ from oslo_log import log as logging
logger = logging.getLogger(__name__)
from boto.ec2.cloudwatch import CloudWatchConnection
from boto.ec2 import cloudwatch
class BotoCWClient(CloudWatchConnection):
class BotoCWClient(cloudwatch.CloudWatchConnection):
'''
Wrapper class for boto CloudWatchConnection class
'''