diff --git a/cloudcafe/stacktach/config.py b/cloudcafe/stacktach/config.py index eb33dbc8..55e41c6b 100644 --- a/cloudcafe/stacktach/config.py +++ b/cloudcafe/stacktach/config.py @@ -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 StacktachConfig(ConfigSectionInterface): SECTION_NAME = 'stacktach' diff --git a/configs/stacktach/default.config b/configs/stacktach/default.config index 583e71e8..12d0d626 100644 --- a/configs/stacktach/default.config +++ b/configs/stacktach/default.config @@ -1,6 +1,6 @@ -[misc] -serializer=json -deserializer=json +[marshalling] +serialize_format=json +deserialize_format=json [stacktach] event_id=