Skip to content

Commit 49fd219

Browse files
committed
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 <[email protected]> Tested-by: Anish Swaminathan <[email protected]>
1 parent a72733f commit 49fd219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

support/image-builder/imagebuilder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def createImage(options):
266266
if not validImage:
267267
raise Exception("Image type/config not supported")
268268

269-
if 'ova' in config['image_type'] and shutil.which("ovftool") is None:
269+
if 'ova' in config['artifacttype'] and shutil.which("ovftool") is None:
270270
raise Exception("ovftool is not available")
271271
workingDir = os.path.abspath(options.stage_path + "/" + config['image_type'])
272272
if os.path.exists(workingDir) and os.path.isdir(workingDir):

0 commit comments

Comments
 (0)