From a897dd32a93617bcfa3930c3c39300ec33236767 Mon Sep 17 00:00:00 2001 From: ZhiQiang Fan Date: Thu, 22 Oct 2015 00:41:36 -0600 Subject: [PATCH] Use oslo_config new type PortOpt for port options The oslo_config library provides new type PortOpt to validate the range of port now. Change-Id: Ibd80787afc1911cf8e517299756f4c8ab640f492 Depends-On: Ida294b05a85f5bef587b761fcd03c28c7a3474d8 --- mistral/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mistral/config.py b/mistral/config.py index 298f9797..36aed363 100644 --- a/mistral/config.py +++ b/mistral/config.py @@ -36,7 +36,7 @@ launch_opt = cfg.ListOpt( api_opts = [ cfg.StrOpt('host', default='0.0.0.0', help='Mistral API server host'), - cfg.IntOpt('port', default=8989, help='Mistral API server port'), + cfg.PortOpt('port', default=8989, help='Mistral API server port'), cfg.BoolOpt('allow_action_execution_deletion', default=False, help='Enables the ability to delete action_execution which ' 'has no relationship with workflows.'),