...
 
Commits (2)
This diff is collapsed.
......@@ -451,6 +451,10 @@ class Zone(object):
def ds(self, algorithm=None):
"""Display the DS of the KSK of the zone."""
for ksk in self.KSK:
if algorithm == 'all':
for algo in self._cfg.DS_ALGORITHMS.values():
sys.stdout.write(ksk.ds(algorithm=algo))
else:
sys.stdout.write(ksk.ds(algorithm=algorithm))
def key(self, show_ksk=False, show_zsk=False):
......@@ -1060,10 +1064,6 @@ def main(): # pylint: disable=locally-disabled,too-many-branches
zone.remove_deleted()
if args.ds:
for zone in zones:
if args.ds == 'all':
for algo in config.DS_ALGORITHMS.values():
zone.ds(algo)
else:
zone.ds(args.ds)
if args.key:
for zone in zones:
......