Merge "Fix set cookie_name to None if not in PUT content"

This commit is contained in:
Jenkins 2017-04-30 14:51:15 +00:00 committed by Gerrit Code Review
commit cb4261444d
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ class SessionPersistencePOST(base.BaseType):
class SessionPersistencePUT(base.BaseType):
"""Defines attributes that are acceptable of a PUT request."""
type = wtypes.wsattr(wtypes.Enum(str, *constants.SUPPORTED_SP_TYPES))
cookie_name = wtypes.wsattr(wtypes.text)
cookie_name = wtypes.wsattr(wtypes.text, default=None)
class PoolResponse(base.BaseType):

View File

@ -36,7 +36,7 @@ class SessionPersistencePOST(types.BaseType):
class SessionPersistencePUT(types.BaseType):
"""Defines attributes that are acceptable of a PUT request."""
type = wtypes.wsattr(wtypes.Enum(str, *constants.SUPPORTED_SP_TYPES))
cookie_name = wtypes.wsattr(wtypes.text)
cookie_name = wtypes.wsattr(wtypes.text, default=None)
class BasePoolType(types.BaseType):