Code Review
/
doctor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
support pep8 check
[doctor.git]
/
doctor_tests
/
installer
/
common
/
vitrage.py
diff --git
a/doctor_tests/installer/common/vitrage.py
b/doctor_tests/installer/common/vitrage.py
index
9ea3227
..
30a73f5
100644
(file)
--- a/
doctor_tests/installer/common/vitrage.py
+++ b/
doctor_tests/installer/common/vitrage.py
@@
-9,7
+9,8
@@
import os
import os
-vitrage_template_file = '/etc/vitrage/templates/vitrage_host_down_scenarios.yaml'
+vitrage_template_file = \
+ '/etc/vitrage/templates/vitrage_host_down_scenarios.yaml'
template = """
metadata:
template = """
metadata:
@@
-86,13
+87,15
@@
scenarios:
action_type: mark_down
action_target:
target: instance
action_type: mark_down
action_target:
target: instance
-"""
+"""
# noqa
def set_vitrage_host_down_template():
if os.path.isfile(vitrage_template_file):
def set_vitrage_host_down_template():
if os.path.isfile(vitrage_template_file):
- print('Vitrage host_down template file: %s already exists.' % vitrage_template_file)
+ print('Vitrage host_down template file: %s already exists.'
+ % vitrage_template_file)
else:
else:
- print('Create Vitrage host_down template file:%s.' % vitrage_template_file)
+ print('Create Vitrage host_down template file:%s.'
+ % vitrage_template_file)
with open(vitrage_template_file, 'w') as file:
file.write(template)
with open(vitrage_template_file, 'w') as file:
file.write(template)