Code Review
/
bottlenecks.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Cadvisor Client-Server installation automation script
[bottlenecks.git]
/
utils
/
parser.py
diff --git
a/utils/parser.py
b/utils/parser.py
index
ecd6bad
..
b46a3b9
100644
(file)
--- a/
utils/parser.py
+++ b/
utils/parser.py
@@
-127,6
+127,15
@@
class Parser():
f.write(json.dumps(data, f))
f.write("\n")
f.write(json.dumps(data, f))
f.write("\n")
+ @staticmethod
+ def str_to_list(str_org):
+ try:
+ data = str_org.split(',')
+ except AttributeError:
+ data = []
+ data.append(str_org)
+ return data
+
class HeatTemplate_Parser():
"""parser a Heat template and a method to deploy template to a stack"""
class HeatTemplate_Parser():
"""parser a Heat template and a method to deploy template to a stack"""