diff options
-rw-r--r-- | oslo_config/generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oslo_config/generator.py b/oslo_config/generator.py index 475b244..ba75c4c 100644 --- a/oslo_config/generator.py +++ b/oslo_config/generator.py @@ -255,10 +255,10 @@ class _OptFormatter(object): lines = self._format_help(help_text) if getattr(opt.type, 'min', None) is not None: - lines.append('# Minimum value: %d\n' % opt.type.min) + lines.append('# Minimum value: {}\n'.format(opt.type.min)) if getattr(opt.type, 'max', None) is not None: - lines.append('# Maximum value: %d\n' % opt.type.max) + lines.append('# Maximum value: {}\n'.format(opt.type.max)) if getattr(opt.type, 'choices', None): lines.append('# Possible values:\n') |