allow file globs
This commit is contained in:
parent
118c8d61ce
commit
35e9c628c1
@ -58,8 +58,10 @@ def create_psycopg2_layer():
|
|||||||
def do_publish(function):
|
def do_publish(function):
|
||||||
zipfilename = "upload.zip"
|
zipfilename = "upload.zip"
|
||||||
with zipfile.ZipFile(zipfilename, "w") as zf:
|
with zipfile.ZipFile(zipfilename, "w") as zf:
|
||||||
for fn in function.files:
|
for fileglob in function.files:
|
||||||
|
for fn in glob.glob(fileglob):
|
||||||
zf.write(fn)
|
zf.write(fn)
|
||||||
|
click.echo(f"adding {fn}")
|
||||||
|
|
||||||
client = boto3.client("lambda")
|
client = boto3.client("lambda")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user