Skip to content

Commit 9881a88

Browse files
committed
fixed .gitignore ignore
1 parent 0c0187e commit 9881a88

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

aws_lambda/aws_lambda.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def init(src, minimal=False):
147147
templates_path = os.path.join(
148148
os.path.dirname(os.path.abspath(__file__)), "project_templates")
149149
for filename in os.listdir(templates_path):
150-
if (minimal and filename == 'event.json') or filename.endswith('.pyc') or filename.endswith('.gitignore'):
150+
if (minimal and filename == 'event.json') or filename.endswith('.pyc'):
151151
continue
152152
dest_path = os.path.join(templates_path, filename)
153153

@@ -204,6 +204,8 @@ def build(src, requirements=False, local_package=None):
204204
continue
205205
if filename == 'config.yaml':
206206
continue
207+
if filename == '.gitignore':
208+
continue
207209
print("Bundling: %r" % filename)
208210
files.append(os.path.join(src, filename))
209211

0 commit comments

Comments
 (0)