Changeset 11262 in genesis for tools/yaml2nag.py
- Timestamp:
- Jun 9, 2012, 5:17:45 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/yaml2nag.py
r10911 r11262 56 56 57 57 # 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' 59 61 hostgroups.append('nodes-ileiden') 60 62 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') 65 67 66 print_host(datadump, hostgroups)67 else:68 print "# ERROR: nodetype %(nodetype)s for %(autogen_realname)s not defined" % datadump68 print_host(datadump, hostgroups) 69 else: 70 print "# ERROR: nodetype %(nodetype)s for %(autogen_realname)s not defined" % datadump 69 71 70 72
Note:
See TracChangeset
for help on using the changeset viewer.