Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d368f658
authored
Jul 29, 2015
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall: also prettify
parent
ecbe7ac8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
circle/firewall/management/commands/reload_firewall_sync.py
+1
-1
circle/firewall/tasks/local_tasks.py
+1
-1
No files found.
circle/firewall/management/commands/reload_firewall_sync.py
View file @
d368f658
...
@@ -24,4 +24,4 @@ from firewall.tasks.local_tasks import reloadtask
...
@@ -24,4 +24,4 @@ from firewall.tasks.local_tasks import reloadtask
class
Command
(
BaseCommand
):
class
Command
(
BaseCommand
):
def
handle
(
self
,
*
args
,
**
options
):
def
handle
(
self
,
*
args
,
**
options
):
reloadtask
(
'Vlan'
,
sync
=
True
)
reloadtask
(
'Vlan'
,
sync
=
True
)
circle/firewall/tasks/local_tasks.py
View file @
d368f658
...
@@ -107,6 +107,6 @@ def reloadtask(type='Host', timeout=15, sync=False):
...
@@ -107,6 +107,6 @@ def reloadtask(type='Host', timeout=15, sync=False):
logger
.
info
(
"Reload
%
s on next periodic iteration applying change to
%
s."
,
logger
.
info
(
"Reload
%
s on next periodic iteration applying change to
%
s."
,
", "
.
join
(
reload
),
type
)
", "
.
join
(
reload
),
type
)
if
all
([
cache
.
add
(
"
%
s_lock"
%
i
,
'true'
,
30
)
for
i
in
reload
]):
if
all
([
cache
.
add
(
"
%
s_lock"
%
i
,
'true'
,
30
)
for
i
in
reload
]):
res
=
reloadtask_worker
.
apply_async
(
queue
=
'localhost.man'
,
countdown
=
5
)
res
=
reloadtask_worker
.
apply_async
(
queue
=
'localhost.man'
,
countdown
=
5
)
if
sync
:
if
sync
:
res
.
get
(
15
)
res
.
get
(
15
)
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