Changeset 14384 in genesis for tools


Ignore:
Timestamp:
Jul 2, 2019, 9:28:15 AM (5 years ago)
Author:
rick
Message:

Fix failing dns generation due to migration to python3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r14383 r14384  
    16721672  for line in dns_list:
    16731673    reverse = False
    1674     k, items = line.items()[0]
     1674    k, items = list(line.items())[0]
    16751675    if type(items) == dict:
    16761676      if 'reverse' in items:
     
    16931693
    16941694  ntp_servers = [x[0] for x in get_nameservers()]
    1695   for id, chunk in enumerate(chunks(ntp_servers,(len(ntp_servers)/4))):
     1695  for id, chunk in enumerate(chunks(ntp_servers,(math.floor(len(ntp_servers)/4)))):
    16961696    for ntp_server in chunk:
    16971697      wleiden_zone['%i.pool.ntp' % id].append((ntp_server, False))
Note: See TracChangeset for help on using the changeset viewer.