Changeset 10547 in genesis for tools/gformat.py


Ignore:
Timestamp:
Apr 22, 2012, 10:28:37 AM (13 years ago)
Author:
richardvm
Message:

False is not valid for rc.conf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r10533 r10547  
    437437  else:
    438438    datadump['autogen_ileiden_enable'] = datadump['ileiden']
     439
     440  datadump['autogen_ileiden_enable'] = switchFormat(datadump['autogen_ileiden_enable'])
    439441
    440442  ileiden_proxies = []
     
    10651067  except KeyError:
    10661068    return True
     1069
     1070def switchFormat(setting):
     1071  if setting:
     1072    return "YES"
     1073  else:
     1074    return "NO"
    10671075
    10681076def main():
Note: See TracChangeset for help on using the changeset viewer.