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:
parent
84b09fef11
commit
8e206ff735
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user