2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 01:22:00 +00:00

Raise error on missing piece of syncfiles entry

This commit is contained in:
Jarrod Johnson 2022-01-20 13:13:04 -05:00
parent 456b43eeb7
commit 3f90c35bc9

View File

@ -205,6 +205,8 @@ def stage_ent(currmap, ent, targdir, appendexist=False):
allfents = ent.split()
for tmpent in allfents:
fents = glob.glob(tmpent)
if not fents:
raise Exception('No matching files for "{}"'.format(tmpent))
everyfent.extend(fents)
if not everyfent:
raise Exception('No matching files for "{}"'.format(ent))