From d43a369730ec30f47b809db16e07dd279866482a Mon Sep 17 00:00:00 2001 From: Cedric Brandily Date: Tue, 27 Oct 2015 12:20:33 +0900 Subject: [PATCH] Use IPOpt and PortOpt IPOpt/PortOpt have been added to oslo.config to provide higher level validation than StrOpt/IntOpt. This change uses them when possible. This change also updates oslo.config version requirement to match OpenStack global requirements. Change-Id: I598faf980150a902ca978e8fda622ef90f064824 Depends-On: Iab34d66b1c12deb53dc5c302db88d8726cabc88c --- cloudkitty/api/app.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cloudkitty/api/app.py b/cloudkitty/api/app.py index f843d3dd..55593439 100644 --- a/cloudkitty/api/app.py +++ b/cloudkitty/api/app.py @@ -45,12 +45,12 @@ auth_opts = [ ] api_opts = [ - cfg.StrOpt('host_ip', - default="0.0.0.0", - help='Host serving the API.'), - cfg.IntOpt('port', - default=8888, - help='Host port serving the API.'), + cfg.IPOpt('host_ip', + default="0.0.0.0", + help='Host serving the API.'), + cfg.PortOpt('port', + default=8888, + help='Host port serving the API.'), cfg.BoolOpt('pecan_debug', default=False, help='Toggle Pecan Debug Middleware.'),