Commit d088ec47 authored by eric pellegrini's avatar eric pellegrini

existing templates are now skipped from packer run

parent e96ec46f
......@@ -223,9 +223,10 @@ class Packman:
build_dir = os.path.join(current_template_dir,"builds")
if os.path.exists(build_dir):
raise IOError("The 'builds' directory already exists. Please remove it before running packer.")
print(f"packer build already found in {current_template_dir}. Skip packer run for that template.")
continue
else:
print("Building image for {}:".format(template))
print(f"Building image for {template}:")
os.chdir(current_template_dir)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment