Ticket #493: bcfg2.conf-parser-patch.patch
File bcfg2.conf-parser-patch.patch, 818 bytes (added by labrown, 15 years ago) |
---|
-
src/lib/Options.py
54 54 raise SystemExit, 1 55 55 if self.configfile: 56 56 cf = ConfigParser.ConfigParser() 57 cf.read(self.configfile) 57 try: 58 cf.read(self.configfile) 59 except ConfigParser.MissingSectionHeaderError, err: 60 print err 61 print "%s Usage:" % (self.name) 62 print self.helpmsg 63 raise SystemExit, 1 58 64 for key, (option, envvar, cfpath, default, boolean) in self.optionspec.iteritems(): 59 65 if self.dogetopt: 60 66 optinfo = [opt[1] for opt in opts if opt[0] == option[0]]