Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PaNOSC
Data Analysis Services
packme
Commits
d088ec47
Commit
d088ec47
authored
Jan 29, 2020
by
eric pellegrini
Browse files
existing templates are now skipped from packer run
parent
e96ec46f
Changes
1
Show whitespace changes
Inline
Side-by-side
src/packme/Packman.py
View file @
d088ec47
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment