Merge "Support pip3 and run on guest-agent service for redis"

This commit is contained in:
Zuul 2019-12-06 09:57:17 +00:00 committed by Gerrit Code Review
commit 94331620a3
2 changed files with 12 additions and 1 deletions

View File

@ -113,4 +113,4 @@ ULIMIT=65536
_EOF_
# Install Python driver for Redis ('redis-py').
pip2 install redis
pip3 install redis

View File

@ -0,0 +1,11 @@
#!/bin/sh
# PURPOSE: Install redis required package in guest-agent-venv
set -ex
if [ $GUEST_VENV ]
then
# Install Python driver for Redis ('redis-py').
$GUEST_VENV/bin/pip3 install redis
fi