diff options
author | Ben Nemec <bnemec@redhat.com> | 2020-12-22 19:34:16 +0000 |
---|---|---|
committer | Stephen Finucane <stephenfin@redhat.com> | 2021-02-17 13:37:45 +0000 |
commit | 3bf9ba550454719f1d56dbbf8bccbabab11a16f6 (patch) | |
tree | e0c932e8744d6513757599191b486dbbc06a49dc | |
parent | 7e151b15b949e00e5d6a1b6ba93c4fbbb38274bc (diff) | |
download | oslo-messaging-3bf9ba550454719f1d56dbbf8bccbabab11a16f6.tar.gz |
Fix type of direct_mandatory_flag opt
An IntOpt with a default of True is invalid. I'm a little surprised
this doesn't fail a defaults check somewhere, but it needs to be
fixed regardless.
Looking at where it is used, it appears the boolean type is correct.
This just changes the opt type to BoolOpt to match.
Change-Id: I01a38754a31c891f2b3b9c7f8135690693df5d13
Closes-Bug: 1909036
(cherry picked from commit b8f8b17030e93f6fe64e986ebae1de4011f007d5)
(cherry picked from commit a0329a3f86e8bf275dd4e16c1f354911a6ff2eb6)
-rw-r--r-- | oslo_messaging/_drivers/impl_rabbit.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/oslo_messaging/_drivers/impl_rabbit.py b/oslo_messaging/_drivers/impl_rabbit.py index dbce2b5..4d5b9e2 100644 --- a/oslo_messaging/_drivers/impl_rabbit.py +++ b/oslo_messaging/_drivers/impl_rabbit.py @@ -169,12 +169,12 @@ rabbit_opts = [ default=2, help='How often times during the heartbeat_timeout_threshold ' 'we check the heartbeat.'), - cfg.IntOpt('direct_mandatory_flag', - default=True, - help='Enable/Disable the RabbitMQ mandatory flag ' - 'for direct send. The direct send is used as reply, ' - 'so the MessageUndeliverable exception is raised ' - 'in case the client queue does not exist.'), + cfg.BoolOpt('direct_mandatory_flag', + default=True, + help='Enable/Disable the RabbitMQ mandatory flag ' + 'for direct send. The direct send is used as reply, ' + 'so the MessageUndeliverable exception is raised ' + 'in case the client queue does not exist.'), cfg.BoolOpt('enable_cancel_on_failover', default=False, help="Enable x-cancel-on-ha-failover flag so that " |