Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mutalyzer
mutalyzer2
Commits
846f6b02
Commit
846f6b02
authored
Nov 09, 2015
by
Vermaat
Browse files
Store interface when submitting batch job without email
parent
999608e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
mutalyzer/Scheduler.py
View file @
846f6b02
...
...
@@ -98,9 +98,9 @@ class Scheduler() :
if
settings
.
TESTING
:
return
# Mail is set to '<IP ADDRESS>@
webservice
' if the batch job
was
# submitted
using the webservice
without specifying an email address.
if
mailTo
.
endswith
(
'
@webservice
'
):
# Mail is set to '<IP ADDRESS>@
<INTERFACE>.mutalyzer
' if the batch job
#
was
submitted without specifying an email address.
if
mailTo
.
endswith
(
'
.mutalyzer
'
):
return
#TODO: Handle Connection errors in a try, except clause
...
...
mutalyzer/services/rpc.py
View file @
846f6b02
...
...
@@ -155,7 +155,7 @@ class MutalyzerService(ServiceBase):
address
=
unicode
(
ctx
.
transport
.
req_env
[
'REMOTE_ADDR'
])
except
(
AttributeError
,
KeyError
):
address
=
'localhost'
email
=
'%s@webservice'
%
address
email
=
'%s@webservice
.mutalyzer
'
%
address
result_id
=
scheduler
.
addJob
(
email
,
job
,
columns
,
batch_types
[
process
],
argument
)
...
...
mutalyzer/website/views.py
View file @
846f6b02
...
...
@@ -907,7 +907,7 @@ def batch_jobs_submit():
errors
=
[]
if
not
email
:
email
=
'{}@webs
ervice
'
.
format
(
request
.
remote_addr
)
email
=
'{}@webs
ite.mutalyzer
'
.
format
(
request
.
remote_addr
)
if
job_type
not
in
BATCH_JOB_TYPES
:
errors
.
append
(
'Invalid batch job type.'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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