- Timestamp:
- 12/18/12 12:53:42 (11 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/pxeconfig.py
r203 r206 74 74 START = 'start' 75 75 END = 'end' 76 VERSION = ' 3.1.0'76 VERSION = '4.2.0' 77 77 78 78 def select_pxe_configfile(): … … 233 233 SCRIPT_HOOK_ADD = False, 234 234 SCRIPT_HOOK_REMOVE = False, 235 SKIP_HOSTNAME_ERRORS = False, 235 236 ) 236 237 … … 263 264 dest = 'VERBOSE', 264 265 help = 'Make the program more verbose (default: False)' 266 ) 267 268 p.add_option('-H', '--skip-hostname-lookup-error', 269 action = 'store_true', 270 dest = 'SKIP_HOSTNAME_LOOKUP_ERROR', 271 help = 'When hostname lookup fails, skip it (default: False)' 265 272 ) 266 273 … … 309 316 310 317 318 if not options.SKIP_HOSTNAME_LOOKUP_ERROR: 319 try: 320 options.SKIP_HOSTNAME_LOOKUP_ERROR = defaults['skip_hostname_lookup_error'] 321 except KeyError, detail: 322 pass 323 311 324 ## This will be obsoleted by client_script_hook_add 312 325 # … … 343 356 mac_2_hex(host, options) 344 357 else: 345 host_2_hex(host, options) 358 try: 359 host_2_hex(host, options) 360 except PxeConfig, detail: 361 362 if options.SKIP_HOSTNAME_LOOKUP_ERROR: 363 print 'Skipping Hostname lookup failed for: %s' %(host) 364 continue 365 else: 366 print detail 367 sys.exit(1) 346 368 347 369 def main(): -
trunk/src/pxeconfigd.py
r196 r206 26 26 config file which tells how the node must boot. This daemon 27 27 enables a client to remove his/here pxe config file. With the 28 29 30 31 32 28 next boot it will use the default one. 29 30 command line option: 31 -V/--version 32 Prints the version number and exits 33 33 34 34 Note: 35 This server can ONLY be started from inetd .35 This server can ONLY be started from inetd/xinetd. 36 36 """ 37 37 import time … … 59 59 60 60 PXE_CONF_DIR = '/tftpboot/pxelinux.cfg' 61 VERSION = ' 3.1.0'61 VERSION = '4.2.0' 62 62 63 63 # Give the current time
Note: See TracChangeset
for help on using the changeset viewer.