summaryrefslogtreecommitdiff
path: root/heatclient/common
diff options
context:
space:
mode:
authorCao Xuan Hoang <hoangcx@vn.fujitsu.com>2016-09-05 09:58:29 +0700
committerCao Xuan Hoang <hoangcx@vn.fujitsu.com>2016-09-05 09:58:29 +0700
commit80eecf92c9e13f92e3311e22774f4b35981dfeaf (patch)
treefdbe5a2fe12b531ef04ce34a1d08a9d95c5ae125 /heatclient/common
parented287fb91364f6bdd8c91c2f60d6523c3cd2af70 (diff)
downloadpython-heatclient-80eecf92c9e13f92e3311e22774f4b35981dfeaf.tar.gz
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
Diffstat (limited to 'heatclient/common')
-rw-r--r--heatclient/common/deployment_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/heatclient/common/deployment_utils.py b/heatclient/common/deployment_utils.py
index adb1769..ee209dc 100644
--- a/heatclient/common/deployment_utils.py
+++ b/heatclient/common/deployment_utils.py
@@ -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 []