aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-github-lambda/lambda_function.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/blogc-github-lambda/lambda_function.py')
-rw-r--r--src/blogc-github-lambda/lambda_function.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/blogc-github-lambda/lambda_function.py b/src/blogc-github-lambda/lambda_function.py
index f8a259d..fb8492f 100644
--- a/src/blogc-github-lambda/lambda_function.py
+++ b/src/blogc-github-lambda/lambda_function.py
@@ -165,7 +165,7 @@ def sns_handler(message):
if os.path.isfile(blogcfile):
# deploy using blogc-make
- args = [os.path.join(cwd, 'blogc'), '-m', '-f', blogcfile,
+ args = [os.path.join(cwd, 'blogc'), '-m', '-p', '-f', blogcfile,
'all']
if debug:
args.append('-V')
@@ -186,6 +186,7 @@ def sns_handler(message):
else:
print "Commit not for master branch, skipping: %s" % payload['ref']
+
def lambda_handler(event, context):
for record in event['Records']:
if 'Sns' in record: