gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [ascension] branch master updated: alpha renaming for sanit


From: gnunet
Subject: [GNUnet-SVN] [ascension] branch master updated: alpha renaming for sanity
Date: Wed, 01 May 2019 14:00:03 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository ascension.

The following commit(s) were added to refs/heads/master by this push:
     new dcbf852  alpha renaming for sanity
dcbf852 is described below

commit dcbf85209aa709001467fe154ad0a8fe05e4aef2
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed May 1 13:59:47 2019 +0200

    alpha renaming for sanity
---
 ascension/ascension.py | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/ascension/ascension.py b/ascension/ascension.py
index 4ee0145..57e51fb 100644
--- a/ascension/ascension.py
+++ b/ascension/ascension.py
@@ -128,7 +128,7 @@ class Ascender():
             logging.info("Zone %s already exists!", cls.domain)
 
     @classmethod
-    def get_current_serial(cls, domain, resolver=None):
+    def get_dns_zone_serial(cls, domain, resolver=None):
         """
         Gets the current serial for a given zone
         :param domain: Domain to query for in DNS
@@ -174,12 +174,11 @@ class Ascender():
             return soa_record[2].serial
 
     @classmethod
-    def mirror_zone(cls):
+    def mirror_zone(cls, zoneserial=None):
         """
         Extract necessary information from Generator
         """
-        currentserial = int(cls.get_current_serial(cls.domain, cls.transferns))
-        zoneserial = int(cls.get_zone_serial())
+        currentserial = int(cls.get_dns_zone_serial(cls.domain, 
cls.transferns))
         if zoneserial == 0:
             logging.info("zone does not exist yet")
             cls.initial_zone_transfer()
@@ -511,7 +510,7 @@ class Ascender():
         return (rdtype, value, label)
 
     @classmethod
-    def get_zone_serial(cls):
+    def get_gns_zone_serial(cls):
         """
         Fetches the zones serial from GNS
         :returns: serial of the SOA record in GNS
@@ -740,9 +739,9 @@ def main():
 
     # Event loop for actual daemon
     while True:
-        serial = ascender.get_zone_serial()
+        serial = ascender.get_gns_zone_serial()
         ascender.initial_zone_transfer(serial)
-        ascender.mirror_zone()
+        ascender.mirror_zone(serial)
         ascender.bootstrap_zone()
         if ascender.zone is not None:
             ascender.add_records_to_gns()

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]