pull/1226/head
meisnate12 2 years ago
parent 715cbc67b6
commit 745413acdb

@ -1 +1 @@
1.18.0-develop50 1.18.0-develop51

@ -803,8 +803,6 @@ class ConfigFile:
if not lib["overlay_path"]: if not lib["overlay_path"]:
raise Failed("Config Error: overlay_path attribute is blank") raise Failed("Config Error: overlay_path attribute is blank")
files = util.load_files(lib["overlay_path"], "overlay_path", lib_vars=lib_vars) files = util.load_files(lib["overlay_path"], "overlay_path", lib_vars=lib_vars)
if not files:
raise Failed("Config Error: No Paths Found for overlay_path")
for file in util.get_list(lib["overlay_path"], split=False): for file in util.get_list(lib["overlay_path"], split=False):
if isinstance(file, dict): if isinstance(file, dict):
if ("remove_overlays" in file and file["remove_overlays"] is True) \ if ("remove_overlays" in file and file["remove_overlays"] is True) \
@ -835,6 +833,8 @@ class ConfigFile:
err = e err = e
if err: if err:
raise NotScheduled(f"Overlay Schedule:{err}\n\nOverlays not scheduled to run") raise NotScheduled(f"Overlay Schedule:{err}\n\nOverlays not scheduled to run")
if not files and params["remove_overlays"] is False and params["reset_overlays"] is False:
raise Failed("Config Error: No Paths Found for overlay_path")
params["overlay_path"] = files params["overlay_path"] = files
except NotScheduled as e: except NotScheduled as e:
logger.info("") logger.info("")

Loading…
Cancel
Save