Skip to content

Commit

Permalink
fix: use shlex to split management args
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhobbs committed Aug 11, 2020
1 parent 0c8d99d commit 68c2989
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zappa/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import json
import logging
import os
import shlex
import sys
import traceback
import tarfile
Expand Down Expand Up @@ -405,7 +406,7 @@ def handler(self, event, context):

# Couldn't figure out how to get the value into stdout with StringIO..
# Read the log for now. :[]
management.call_command(*event['manage'].split(' '))
management.call_command(shlex.split(*event['manage']))
return {}

# This is an AWS-event triggered invocation.
Expand Down

0 comments on commit 68c2989

Please sign in to comment.