1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 02:01:16 +00:00

framework/config: make LoggingConfig serializable

This commit is contained in:
Sergei Trofimov 2017-10-06 12:52:12 +01:00
parent cd328c9a50
commit 6e0cb73a4e

View File

@ -118,6 +118,10 @@ class LoggingConfig(dict):
'color': True,
}
@staticmethod
def from_pod(pod):
return LoggingConfig(pod)
def __init__(self, config=None):
dict.__init__(self)
if isinstance(config, dict):
@ -136,6 +140,9 @@ class LoggingConfig(dict):
else:
raise ValueError(config)
def to_pod(self):
return self
def get_type_name(kind):
typename = str(kind)