Added misc section in config.py to get the serializer and deserializer value while instantiating client.
Modified misc section to be marshalling in default.config as well as in config.py so that its consistent across products. Change-Id: Ib95824f5471cf1828a6373476f9920389287264b
This commit is contained in:
parent
6785a2c3e9
commit
838c58f1f5
@ -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'
|
||||
|
@ -1,6 +1,6 @@
|
||||
[misc]
|
||||
serializer=json
|
||||
deserializer=json
|
||||
[marshalling]
|
||||
serialize_format=json
|
||||
deserialize_format=json
|
||||
|
||||
[stacktach]
|
||||
event_id=<id of an event>
|
||||
|
Loading…
x
Reference in New Issue
Block a user