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:
parent
f19a89df9d
commit
39a1840da6
|
@ -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
|
||||
'''
|
||||
|
|
|
@ -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
|
||||
'''
|
||||
|
|
Loading…
Reference in New Issue