summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authoryuyang <Gabriel.yuyang@huawei.com>2017-04-11 14:47:07 +0800
committerYu Yang (Gabriel) <Gabriel.yuyang@huawei.com>2017-04-11 09:12:44 +0000
commit5aa06cad704691872c61f0922e205ae1036268a6 (patch)
treef1a8110075eb4672dd5d8d00d39cf79883431553 /utils
parentaecb9de94d78b3871fbb2b2751f873bf643e27bb (diff)
Fix code style issues for specificed path
JIRA: BOTTLENECK-100 Fix code syle issues for the path flake8 specified before flake8 check merged into CI pipeline. Change-Id: Iee59bada206fafd4740023e90d08a4b4a7a030db Signed-off-by: yuyang <Gabriel.yuyang@huawei.com> (cherry picked from commit fc30c5208a680d0059cfa48891a1d97747f7f778)
Diffstat (limited to 'utils')
-rw-r--r--utils/infra_setup/runner/stack.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/utils/infra_setup/runner/stack.py b/utils/infra_setup/runner/stack.py
index fb78c360..c3fa00a8 100644
--- a/utils/infra_setup/runner/stack.py
+++ b/utils/infra_setup/runner/stack.py
@@ -12,13 +12,20 @@ a template is use to create a stack in openstack.
This file will be amended in the furture.'''
import utils.infra_setup.heat.template as Heat
+import os
+import sys
+import utils.parser as Parser
+
class stack_api():
- def from_config_template(stack_info):
+ def __init__(self):
+ pass
+
+ def from_config_template(self, stack_info):
stack_name = stack_info['name']
ext_gw_net = os.environ.get("EXTERNAL_NETWORK")
- heat_parser = HeatTemplate_Parser()
+ heat_parser = Parser.HeatTemplate_Parser()
heat_parser.add_security_group(stack_name)
heat_parser.add_keypair(stack_name)
for network in stack_info['networks']:
@@ -58,4 +65,3 @@ class stack_api():
if server.floating_ip:
server.public_ip = \
self.stack.outputs[server.floating_ip["stack_name"]]
-