Adds configurable marshalling for Compute
* Added marshalling section to Compute config Change-Id: Ic757e43b9a5c5d00f4668a240e2882af4e51686e
This commit is contained in:
@@ -17,6 +17,18 @@ limitations under the License.
|
||||
from cloudcafe.common.models.configuration import ConfigSectionInterface
|
||||
|
||||
|
||||
class MarshallingConfig(ConfigSectionInterface):
|
||||
SECTION_NAME = 'marshalling'
|
||||
|
||||
@property
|
||||
def serializer(self):
|
||||
return self.get("serialize_format")
|
||||
|
||||
@property
|
||||
def deserializer(self):
|
||||
return self.get("deserialize_format")
|
||||
|
||||
|
||||
class ComputeConfig(ConfigSectionInterface):
|
||||
|
||||
SECTION_NAME = 'compute'
|
||||
|
||||
Reference in New Issue
Block a user