Merge "Update hacking version"

This commit is contained in:
Zuul 2019-03-26 09:31:36 +00:00 committed by Gerrit Code Review
commit c14cef7a3f
4 changed files with 16 additions and 19 deletions

View File

@ -17,16 +17,15 @@
import six
if six.PY2:
from inspect import getargspec as getfullargspec
else:
from inspect import getfullargspec
from oslo_config import cfg
import webob.dec
import webob.request
import webob.response
from oslo_config import cfg
if six.PY2:
from inspect import getargspec as getfullargspec
else:
from inspect import getfullargspec
class NoContentTypeResponse(webob.response.Response):

View File

@ -140,8 +140,8 @@ class CORS(base.ConfigurableMiddleware):
allow_methods: List of HTTP methods to permit.
allow_headers: List of HTTP headers to permit from the client.
"""
if ('allowed_origin' not in local_conf
and 'oslo_config_project' not in local_conf):
if ('allowed_origin' not in local_conf and
'oslo_config_project' not in local_conf):
raise TypeError("allowed_origin or oslo_config_project "
"is required")
return super(CORS, cls).factory(global_conf, **local_conf)

View File

@ -12,6 +12,14 @@
# License for the specific language governing permissions and limitations
# under the License.
import copy
import itertools
from oslo_middleware import cors
from oslo_middleware.healthcheck import opts as healthcheck_opts
from oslo_middleware import http_proxy_to_wsgi
from oslo_middleware import sizelimit
from oslo_middleware import ssl
__all__ = [
'list_opts',
@ -23,16 +31,6 @@ __all__ = [
]
import copy
import itertools
from oslo_middleware import cors
from oslo_middleware.healthcheck import opts as healthcheck_opts
from oslo_middleware import http_proxy_to_wsgi
from oslo_middleware import sizelimit
from oslo_middleware import ssl
def list_opts():
"""Return a list of oslo.config options for ALL of the middleware classes.

View File

@ -3,7 +3,7 @@
# process, which may cause wedges in the gate later.
fixtures>=3.0.0 # Apache-2.0/BSD
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
hacking>=1.1.0,<1.2.0 # Apache-2.0
mock>=2.0.0 # BSD
oslotest>=3.2.0 # Apache-2.0
testtools>=2.2.0 # MIT