mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-28 01:01:12 +00:00
Use empty values by default
This allows content rendering with an almost-empty YAML file
This commit is contained in:
@@ -94,6 +94,10 @@ def generatefromyaml(manifest, filename):
|
||||
if override:
|
||||
manifest[k] = override
|
||||
|
||||
for k in ["chat", "gitrepo", "slides", "title"]:
|
||||
if k not in manifest:
|
||||
manifest[k] = ""
|
||||
|
||||
if "zip" not in manifest:
|
||||
if manifest["slides"].endswith('/'):
|
||||
manifest["zip"] = manifest["slides"] + "slides.zip"
|
||||
|
||||
Reference in New Issue
Block a user