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: I9b7c8c7e37ee9861a63489f5b8fd611f2d31946e
This commit is contained in:
parent
ed287fb913
commit
80eecf92c9
|
@ -20,13 +20,13 @@ from swiftclient import utils as swiftclient_utils
|
|||
|
||||
from heatclient import exc
|
||||
from heatclient.openstack.common._i18n import _
|
||||
from heatclient.v1.software_configs import SoftwareConfig
|
||||
from heatclient.v1 import software_configs
|
||||
|
||||
|
||||
def build_derived_config_params(action, source, name, input_values,
|
||||
server_id, signal_transport, signal_id=None):
|
||||
|
||||
if isinstance(source, SoftwareConfig):
|
||||
if isinstance(source, software_configs.SoftwareConfig):
|
||||
source = source.to_dict()
|
||||
input_values = input_values or {}
|
||||
inputs = copy.deepcopy(source.get('inputs')) or []
|
||||
|
|
Loading…
Reference in New Issue