When creating the env-vars printf is called with arguments in single
quotes to prevent variable and sub-shell expansions. However, only one
single quote was passed as an argument to printf, but two format
specifiers are present in the escpaed string.
Fix this by adding another \"'\" to the variable cmd.
Signed-off-by: Enno Tensing <tenno@suij.in>
As ${TODAY} was forgotten, the first argument from ${@} was used as a
timestamp instead, resulting in malformed log messages. Fix this by
adding ${TDOAY} before ${@}.
Signed-off-by: Enno Tensing <tenno@suij.in>
Use ",".join() instead of the custom join() method and fix
Secret.command() by checking if secret_type and not target is mount...
Signed-off-by: Enno Tensing <tenno@suij.in>
This fixes various issues reported by pylint. It now only reports to
issues, that can be ignored, since they're only about too many local
variables or class attributes.
Signed-off-by: Enno Tensing <tenno@suij.in>
Since the environemt creation are now seperate methods, the create and
create_container split is no longer needed.
Signed-off-by: Enno Tensing <tenno@suij.in>
Add {create,remove}_environment wrappers to the Container class, so that
the generate script can access them.
Signed-off-by: Enno Tensing <tenno@suij.in>
Remove the if ! [ -d {file.parent} ] check from Envrionment.create(), as
the directory has to exists, since the script checking if it exists also
is located in that directort...
Signed-off-by: Enno Tensing <tenno@suij.in>