Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
5
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b2ed9564
authored
Oct 04, 2022
by
Karsa Zoltán István
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webhook initial commit
parent
31bb2f5c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
circle/vm/models/instance.py
+3
-1
No files found.
circle/vm/models/instance.py
View file @
b2ed9564
...
...
@@ -460,7 +460,9 @@ class Instance(AclBase, VirtualMachineDescModel, StatusModel, OperatedMixin,
def
callhookurl
(
self
):
import
requests
as
req
if
self
.
hookurl
:
req
.
get
(
url
=
self
.
hookurl
)
logger
.
info
(
"notify remote host (callhookurl)"
)
req
.
post
(
url
=
self
.
hookurl
)
def
_update_status
(
self
):
"""Set the proper status of the instance to Instance.status.
...
...
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