Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
1bb5c7e8
Commit
1bb5c7e8
authored
Jan 22, 2015
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only notify when hipchat is setup.
parent
4914f794
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
playbooks/roles/supervisor/files/pre_supervisor_checks.py
+4
-2
No files found.
playbooks/roles/supervisor/files/pre_supervisor_checks.py
View file @
1bb5c7e8
...
@@ -137,7 +137,8 @@ if __name__ == '__main__':
...
@@ -137,7 +137,8 @@ if __name__ == '__main__':
if
environment
is
None
or
deployment
is
None
or
play
is
None
:
if
environment
is
None
or
deployment
is
None
or
play
is
None
:
msg
=
"Unable to retrieve environment, deployment, or play tag."
msg
=
"Unable to retrieve environment, deployment, or play tag."
print
(
msg
)
print
(
msg
)
notify
(
"{} : {}"
.
format
(
prefix
,
msg
))
if
notify
:
notify
(
"{} : {}"
.
format
(
prefix
,
msg
))
exit
(
0
)
exit
(
0
)
#get the hostname of the sandbox
#get the hostname of the sandbox
...
@@ -157,7 +158,8 @@ if __name__ == '__main__':
...
@@ -157,7 +158,8 @@ if __name__ == '__main__':
except
:
except
:
msg
=
"Failed to tag volumes associated with {}"
.
format
(
instance_id
)
msg
=
"Failed to tag volumes associated with {}"
.
format
(
instance_id
)
print
(
msg
)
print
(
msg
)
notify
(
msg
)
if
notify
:
notify
(
msg
)
try
:
try
:
for
service
in
services_for_instance
(
instance_id
):
for
service
in
services_for_instance
(
instance_id
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment