Add deprecated_for_removal config info in ironic.conf.sample

Configuration options has a parameter called "deprecated_for_removal" to
indicate that one option is planned to be removed in a future release.
This patch is extending the config generator script to add this
information to the output .sample file.

Change-Id: I3d3a69ea9ca700edf96ede947ff7b074e7978484
Closes-Bug: #1549351
This commit is contained in:
Lucas Alvares Gomes 2016-02-24 16:00:52 +00:00
parent 84b09fef11
commit 8e206ff735
2 changed files with 5 additions and 0 deletions

View File

@ -119,6 +119,7 @@
# Default interval for running driver periodic tasks. (integer
# value)
# This option is deprecated and planned for removal in a future release.
#periodic_interval=60
# Name of this node. This can be an opaque identifier. It is
@ -171,6 +172,7 @@
# If set to false, the logging level will be set to WARNING
# instead of the default INFO level. (boolean value)
# This option is deprecated and planned for removal in a future release.
#verbose=true
# The name of a logging configuration file. This file is

View File

@ -285,6 +285,9 @@ def _print_opt(opt, group):
print('# Deprecated group/name - [%s]/%s' %
(deprecated_group,
deprecated_name))
if opt.deprecated_for_removal:
print('# This option is deprecated and planned for removal in a '
'future release.')
try:
if opt_default is None:
print('#%s=<None>' % opt_name)