From 7a31c2e438da2d165f473f7428cee7d2164312df Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Tue, 27 Aug 2019 03:52:08 +0000 Subject: Fix py3 related issue Change-Id: I2b21aaab2cbf0df11b9940bf62585294dd1ce576 Issue-ID: MULTICLOUD-774 Signed-off-by: Bin Yang --- share/starlingx_base/resource/infra_workload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share/starlingx_base/resource') diff --git a/share/starlingx_base/resource/infra_workload.py b/share/starlingx_base/resource/infra_workload.py index 5020af94..acce28ab 100644 --- a/share/starlingx_base/resource/infra_workload.py +++ b/share/starlingx_base/resource/infra_workload.py @@ -33,7 +33,7 @@ import yaml NoDatesSafeLoader = yaml.SafeLoader NoDatesSafeLoader.yaml_implicit_resolvers = { k: [r for r in v if r[0] != 'tag:yaml.org,2002:timestamp'] for - k, v in NoDatesSafeLoader.yaml_implicit_resolvers.items() + k, v in list(NoDatesSafeLoader.yaml_implicit_resolvers.items()) } logger = logging.getLogger(__name__) -- cgit 1.2.3-korg