Set the valid choices for the rabbit login methods

According to the RabbitMQ client docs [1], the only valid login
methods are: PLAIN, AMQPLAIN, or RABBIT-CR-DEMO. This patch restricts
the rabbit driver to only those options.

[1] https://www.rabbitmq.com/authentication.html

Change-Id: I193f33adf4ecc1c0fd29ddc08b35533f24f1c967
This commit is contained in:
Eric Brown 2016-09-19 16:52:26 -07:00
parent afaa4d935d
commit e9e16450f9

@ -133,6 +133,7 @@ rabbit_opts = [
help='The RabbitMQ password.',
secret=True),
cfg.StrOpt('rabbit_login_method',
choices=('PLAIN', 'AMQPLAIN', 'RABBIT-CR-DEMO'),
default='AMQPLAIN',
deprecated_group='DEFAULT',
help='The RabbitMQ login method.'),