From 49fd2196b78b707879a702a715b122a8d7ac9f19 Mon Sep 17 00:00:00 2001 From: suezzelur Date: Thu, 13 Dec 2018 14:19:27 -0800 Subject: [PATCH] Raise ovftool not found exception only if artifacttype is ova Change-Id: Ibd9ddb4ca0038085a5d48a284276bea9464c398e Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6367 Reviewed-by: Bo Gan Tested-by: Anish Swaminathan --- support/image-builder/imagebuilder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/image-builder/imagebuilder.py b/support/image-builder/imagebuilder.py index 250433af78..9fadde8ea4 100755 --- a/support/image-builder/imagebuilder.py +++ b/support/image-builder/imagebuilder.py @@ -266,7 +266,7 @@ def createImage(options): if not validImage: raise Exception("Image type/config not supported") - if 'ova' in config['image_type'] and shutil.which("ovftool") is None: + if 'ova' in config['artifacttype'] and shutil.which("ovftool") is None: raise Exception("ovftool is not available") workingDir = os.path.abspath(options.stage_path + "/" + config['image_type']) if os.path.exists(workingDir) and os.path.isdir(workingDir):