Skip to content

Commit

Permalink
Raise ovftool not found exception only if artifacttype is ova
Browse files Browse the repository at this point in the history
Change-Id: Ibd9ddb4ca0038085a5d48a284276bea9464c398e
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6367
Reviewed-by: Bo Gan <ganb@vmware.com>
Tested-by: Anish Swaminathan <anishs@vmware.com>
  • Loading branch information
suezzelur committed Dec 13, 2018
1 parent a72733f commit 49fd219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support/image-builder/imagebuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 49fd219

Please sign in to comment.