Deprecate the mandatory flag

It will not be possible to deactivate this functionality anymore.

Change-Id: I1cbafff03349f7da9224de46285707fbf2a81a68
(cherry picked from commit 2b89d97888)
This commit is contained in:
Hervé Beraud 2021-01-18 14:14:21 +01:00
parent a0329a3f86
commit 06ad070cc6
2 changed files with 12 additions and 3 deletions

View File

@ -169,10 +169,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.