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
21e50931
Commit
21e50931
authored
Aug 04, 2015
by
Fred Smith
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2182 from edx/derf/remove_double_hipchat_messages
remove double hipchat messages
parents
654995c5
1b083d38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
util/vpc-tools/abbey.py
+10
-10
No files found.
util/vpc-tools/abbey.py
View file @
21e50931
...
...
@@ -674,16 +674,16 @@ def send_hipchat_message(message):
print
(
message
)
if
args
.
callback_url
:
r
=
requests
.
get
(
"{}/{}"
.
format
(
args
.
callback_url
,
message
))
#If hipchat is configured send the details to the specified room
if
args
.
hipchat_api_token
and
args
.
hipchat_room_id
:
import
hipchat
try
:
hipchat
=
hipchat
.
HipChat
(
token
=
args
.
hipchat_api_token
)
hipchat
.
message_room
(
args
.
hipchat_room_id
,
'AbbeyNormal'
,
message
)
except
Exception
as
e
:
print
(
"Hipchat messaging resulted in an error:
%
s."
%
e
)
else
:
#If hipchat is configured send the details to the specified room
if
args
.
hipchat_api_token
and
args
.
hipchat_room_id
:
import
hipchat
try
:
hipchat
=
hipchat
.
HipChat
(
token
=
args
.
hipchat_api_token
)
hipchat
.
message_room
(
args
.
hipchat_room_id
,
'AbbeyNormal'
,
message
)
except
Exception
as
e
:
print
(
"Hipchat messaging resulted in an error:
%
s."
%
e
)
if
__name__
==
'__main__'
:
...
...
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