Merge "Deprecate the mandatory flag"

This commit is contained in:
Zuul 2021-02-01 16:47:19 +00:00 committed by Gerrit Code Review
commit e18553f505
2 changed files with 12 additions and 3 deletions

View File

@ -171,10 +171,14 @@ rabbit_opts = [
'we check the heartbeat.'), 'we check the heartbeat.'),
cfg.BoolOpt('direct_mandatory_flag', cfg.BoolOpt('direct_mandatory_flag',
default=True, default=True,
help='Enable/Disable the RabbitMQ mandatory flag ' deprecated_for_removal=True,
'for direct send. The direct send is used as reply, ' deprecated_reason='Mandatory flag no longer deactivable.',
help='(DEPRECATED) Enable/Disable the RabbitMQ mandatory '
'flag for direct send. The direct send is used as reply, '
'so the MessageUndeliverable exception is raised ' 'so the MessageUndeliverable exception is raised '
'in case the client queue does not exist.'), 'in case the client queue does not exist.'
'This flag is deprecated and it will not be possible to '
'deactivate this functionality anymore'),
cfg.BoolOpt('enable_cancel_on_failover', cfg.BoolOpt('enable_cancel_on_failover',
default=False, default=False,
help="Enable x-cancel-on-ha-failover flag so that " help="Enable x-cancel-on-ha-failover flag so that "

View File

@ -0,0 +1,5 @@
---
upgrade:
- |
Deprecating the ``direct_mandatory_flag``. It will not be possible to
deactivate this functionality anymore.