diff options
Diffstat (limited to 'rpkid/rpki-confgen.py')
-rw-r--r-- | rpkid/rpki-confgen.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/rpkid/rpki-confgen.py b/rpkid/rpki-confgen.py index 37987d5a..a2d4fbd1 100644 --- a/rpkid/rpki-confgen.py +++ b/rpkid/rpki-confgen.py @@ -78,7 +78,7 @@ class Section(object): THIS PAGE WAS GENERATED AUTOMATICALLY, DO NOT EDIT. Generated from ''' + ident + ''' -by $Id$ +by $Id$ }}} = ![''' + self.name + '''] section = @@ -141,7 +141,7 @@ for o, a in opts: elif o == "--autoconf": try: import rpki.autoconf - for option in section_map["autoconf"]: + for option in section_map["autoconf"].options: try: option.value = getattr(rpki.autoconf, option.name) except AttributeError: @@ -166,9 +166,10 @@ for o, a in opts: elif o == "--write-conf": with open(a, "w") as f: f.write('''\ -# Automatically generated. Edit if you like, but be careful of overwriting. +# Automatically generated. Edit as needed, but be careful of overwriting. +# # Generated from ''' + ident + ''' -# by $Id$ +# by $Id$ ''') width = max(s.width for s in sections) for section in sections: |