Changeset 11262 in genesis for tools/yaml2nag.py


Ignore:
Timestamp:
Jun 9, 2012, 5:17:45 PM (12 years ago)
Author:
richardvm
Message:

aangepast door huub, geen problemen mee

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/yaml2nag.py

    r10911 r11262  
    5656
    5757      # ileiden groups
    58       if datadump['ileiden']:
     58#     if datadump['ileiden'] or datadump['nodetype'] == "Hybrid":
     59      if datadump['nodetype'] in ['CNode', 'Hybrid']:
     60        datadump['use'] = 'host-pnp'
    5961        hostgroups.append('nodes-ileiden')
    6062
    61       print_host(datadump, hostgroups)
    62     elif datadump['nodetype'] == 'Proxy':
    63       datadump['use'] = 'host-proxy'
    64       hostgroups.append('proxies')
     63        print_host(datadump, hostgroups)
     64      elif datadump['nodetype'] == 'Proxy':
     65        datadump['use'] = 'host-proxy'
     66        hostgroups.append('proxies')
    6567
    66       print_host(datadump, hostgroups)
    67     else:
    68       print "# ERROR: nodetype %(nodetype)s for %(autogen_realname)s not defined" % datadump
     68        print_host(datadump, hostgroups)
     69      else:
     70        print "# ERROR: nodetype %(nodetype)s for %(autogen_realname)s not defined" % datadump
    6971
    7072
Note: See TracChangeset for help on using the changeset viewer.