Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bind-dnssec
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Valentin Samir
bind-dnssec
Commits
e7afea50
Commit
e7afea50
authored
Aug 17, 2016
by
Valentin Samir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force new ZSK activate to previous ZSK inactivate
Fix some edge cases happening then the script is not running daily
parent
b25d5acb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
routine.py
routine.py
+3
-0
No files found.
routine.py
View file @
e7afea50
...
...
@@ -112,12 +112,15 @@ class Zone(object):
if
zsk
.
is_activate
:
zsk
.
inactive
=
zsk
.
activate
+
ZSK_VALIDITY
zsk
.
delete
=
zsk
.
inactive
+
INTERVAL
last_activate_zsk
=
zsk
now
=
datetime
.
datetime
.
utcnow
()
if
zsk
.
is_activate
:
zsk
.
inactive
=
max
(
zsk
.
inactive
,
now
+
INTERVAL
)
zsk
.
delete
=
zsk
.
inactive
+
INTERVAL
zsk
.
gen_successor
()
bind_reload
()
else
:
zsk
.
activate
=
last_activate_zsk
.
inactive
def
do_ksk
(
self
):
ksk
=
self
.
KSK
[
-
1
]
...
...
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