From 472427a7821087f4ef8dfb5a66cd63236b314179 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Fri, 22 May 2020 14:29:50 -0400 Subject: [PATCH] Change tls_ciphers init in Pool API classes Just change to be wrapped in wtypes.wsattr() like the rest of the values, even though it isn't strictly required. Change-Id: Ib9849c2bed00781ddae101cc6356e665b14f003f --- octavia/api/v2/types/pool.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/octavia/api/v2/types/pool.py b/octavia/api/v2/types/pool.py index b32aba6e48..1b2fdbe375 100644 --- a/octavia/api/v2/types/pool.py +++ b/octavia/api/v2/types/pool.py @@ -83,7 +83,7 @@ class PoolResponse(BasePoolType): ca_tls_container_ref = wtypes.wsattr(wtypes.StringType()) crl_container_ref = wtypes.wsattr(wtypes.StringType()) tls_enabled = wtypes.wsattr(bool) - tls_ciphers = wtypes.StringType() + tls_ciphers = wtypes.wsattr(wtypes.StringType()) tls_versions = wtypes.wsattr(wtypes.ArrayType(wtypes.StringType())) @classmethod @@ -162,7 +162,7 @@ class PoolPOST(BasePoolType): ca_tls_container_ref = wtypes.wsattr(wtypes.StringType(max_length=255)) crl_container_ref = wtypes.wsattr(wtypes.StringType(max_length=255)) tls_enabled = wtypes.wsattr(bool, default=False) - tls_ciphers = wtypes.StringType(max_length=2048) + tls_ciphers = wtypes.wsattr(wtypes.StringType(max_length=2048)) tls_versions = wtypes.wsattr(wtypes.ArrayType(wtypes.StringType( max_length=32))) @@ -184,7 +184,7 @@ class PoolPUT(BasePoolType): ca_tls_container_ref = wtypes.wsattr(wtypes.StringType(max_length=255)) crl_container_ref = wtypes.wsattr(wtypes.StringType(max_length=255)) tls_enabled = wtypes.wsattr(bool) - tls_ciphers = wtypes.StringType(max_length=2048) + tls_ciphers = wtypes.wsattr(wtypes.StringType(max_length=2048)) tls_versions = wtypes.wsattr(wtypes.ArrayType(wtypes.StringType( max_length=32))) @@ -209,7 +209,7 @@ class PoolSingleCreate(BasePoolType): ca_tls_container_ref = wtypes.wsattr(wtypes.StringType(max_length=255)) crl_container_ref = wtypes.wsattr(wtypes.StringType(max_length=255)) tls_enabled = wtypes.wsattr(bool, default=False) - tls_ciphers = wtypes.StringType(max_length=2048) + tls_ciphers = wtypes.wsattr(wtypes.StringType(max_length=2048)) tls_versions = wtypes.wsattr(wtypes.ArrayType(wtypes.StringType( max_length=32)))