Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
agentdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c1f5a2bc
authored
Jul 24, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename send_notification to send_expiration
parent
48f8974e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
agentcelery.py
+4
-4
No files found.
agentcelery.py
View file @
c1f5a2bc
...
@@ -101,11 +101,11 @@ def get_keys(vm):
...
@@ -101,11 +101,11 @@ def get_keys(vm):
command
=
'get_keys'
,
args
=
{},
uuid
=
get_keys
.
request
.
id
)
command
=
'get_keys'
,
args
=
{},
uuid
=
get_keys
.
request
.
id
)
@celery.task
(
name
=
'agent.send_
notific
ation'
)
@celery.task
(
name
=
'agent.send_
expir
ation'
)
def
send_
notification
(
vm
,
msg
):
def
send_
expiration
(
vm
,
url
):
logger
.
debug
(
'send_
notification(
%
s,
%
s)'
,
vm
,
msg
)
logger
.
debug
(
'send_
expiration(
%
s,
%
s)'
,
vm
,
url
)
return
reactor
.
connections
[
vm
]
.
send_command
(
return
reactor
.
connections
[
vm
]
.
send_command
(
command
=
'send_
notification'
,
args
=
{
'msg'
:
msg
})
command
=
'send_
expiration'
,
args
=
{
'url'
:
url
})
@celery.task
(
name
=
'vm.tasks.local_agent_tasks.renew'
)
@celery.task
(
name
=
'vm.tasks.local_agent_tasks.renew'
)
...
...
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