Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6694020e
authored
Nov 14, 2014
by
Őry Máté
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall: handle get_dhcp_clients' remote exceptions
parent
23d85db4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
circle/firewall/models.py
+7
-1
No files found.
circle/firewall/models.py
View file @
6694020e
...
...
@@ -965,7 +965,13 @@ class Firewall(models.Model):
return
get_dhcp_clients
.
apply_async
(
queue
=
self
.
get_remote_queue_name
(),
expires
=
60
)
.
get
(
timeout
=
2
)
except
TimeoutError
:
return
None
logger
.
info
(
"get_dhcp_clients task timed out"
)
except
IOError
:
logger
.
exception
(
"get_dhcp_clients failed. "
"maybe syslog isn't readble by firewall worker"
)
except
:
logger
.
exception
(
"get_dhcp_clients failed"
)
return
None
class
Domain
(
models
.
Model
):
...
...
Guba Sándor
@gubasandor
mentioned in merge request
!273 (merged)
Nov 14, 2014
mentioned in merge request
!273 (merged)
mentioned in merge request !273
Toggle commit list
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