Code Review
/
bottlenecks.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix code style issues for specificed path
[bottlenecks.git]
/
utils
/
infra_setup
/
runner
/
stack.py
diff --git
a/utils/infra_setup/runner/stack.py
b/utils/infra_setup/runner/stack.py
index
fb78c36
..
c3fa00a
100644
(file)
--- 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
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():
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")
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']:
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"]]
if server.floating_ip:
server.public_ip = \
self.stack.outputs[server.floating_ip["stack_name"]]
-