summaryrefslogtreecommitdiffstats
path: root/share/starlingx_base
diff options
context:
space:
mode:
Diffstat (limited to 'share/starlingx_base')
-rw-r--r--share/starlingx_base/registration/registration.py2
-rw-r--r--share/starlingx_base/resource/infra_workload.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/share/starlingx_base/registration/registration.py b/share/starlingx_base/registration/registration.py
index 85d3faa0..da05426f 100644
--- a/share/starlingx_base/registration/registration.py
+++ b/share/starlingx_base/registration/registration.py
@@ -488,7 +488,7 @@ class InfraResourceAuditor(newton_registration.RegistryHelper):
vimAzList.append(azName)
# get list of host names
- pservers_info = [k for (k, v) in az['hosts'].items()]
+ pservers_info = [k for (k, v) in list(az['hosts'].items())]
# Get current cap info of azName
azCapCacheKey = "cap_" + vimid + "_" + azName
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__)