from .cfg_app import PpCfgAppError, PpConfigApplication
-__version__ = '0.3.1'
+__version__ = '0.3.2'
LOG = logging.getLogger(__name__)
self.named_show_bind_version = False
self.named_version2show = self.default_named_version2show
- self.zones = {}
+ self.zones = []
description = textwrap.dedent('''\
Generation of configuration of named (the BIND 9 name daemon).
zone_name = entry['name']
zone = {
+ 'name': zone_name,
'account': entry['account'],
'kind': entry['kind'],
'serial': entry['serial'],
zone['canonical_name'] = uni_name
- self.zones[zone_name] = zone
+ self.zones.append(zone)
+
+ self.zones.sort(key=lambda x: x['canonical_name'])
if self.verbose > 2:
LOG.debug("Got zones:\n{}".format(pp(self.zones)))