Skip to content

Commit

Permalink
Added escaping to environmental variables
Browse files Browse the repository at this point in the history
  • Loading branch information
wnielson committed Aug 10, 2016
1 parent c5586c9 commit d8a90e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prt.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
SSH_HOST_RE = re.compile(r'ssh +([^@]+)@([^ ]+)')

__author__ = "Weston Nielson <wnielson@github>"
__version__ = "0.3.3"
__version__ = "0.3.4"


def get_config():
Expand Down Expand Up @@ -237,7 +237,7 @@ def overwrite_transcoder_after_upgrade():
def build_env(host=None):
# TODO: This really should be done in a way that is specific to the target
# in the case that the target is a different architecture than the host
envs = ["export %s=%s" % (k, v) for k,v in os.environ.items()]
envs = ["export %s=%s" % (k, pipes.quote(v)) for k,v in os.environ.items()]
envs.append("export PRT_ID=%s" % uuid.uuid1().hex)
return ";".join(envs)

Expand Down

0 comments on commit d8a90e5

Please sign in to comment.