From b0031f36804c20417d6c5a0fe8f730ba33bfc0d1 Mon Sep 17 00:00:00 2001 From: beierl Date: Fri, 29 Nov 2019 14:03:21 -0500 Subject: [PATCH] Fixing Python3 Syntax was still python2 only. Change-Id: Ie378662686ddf49c0a31cd46ea0e660cc00c7604 Signed-off-by: beierl --- tools/OVF_converter/converter.py | 2 +- tools/OVF_converter/ovf_template/template.xml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/OVF_converter/converter.py b/tools/OVF_converter/converter.py index 5f31ed36..8c689477 100644 --- a/tools/OVF_converter/converter.py +++ b/tools/OVF_converter/converter.py @@ -464,7 +464,7 @@ class OVFConverter(object): disk_controller_info = self.__read_yaml_file(DISK_CONTROLLER_INFO_FILE_PATH) try: if self.disk_controller and disk_controller_info: - for key, value in disk_controller_info.iteritems(): + for key, value in disk_controller_info.items(): if self.disk_controller.lower() in key.lower(): disk_controller['controllerName'] = key disk_controller['resourceType'] = str(value["ResourceType"]) diff --git a/tools/OVF_converter/ovf_template/template.xml b/tools/OVF_converter/ovf_template/template.xml index a963582f..6382cefe 100644 --- a/tools/OVF_converter/ovf_template/template.xml +++ b/tools/OVF_converter/ovf_template/template.xml @@ -1,3 +1,4 @@ + - @@ -30,9 +30,9 @@ List of logical networks used in the package - + - + A virtual machine Virtual machine name -- 2.25.1