Skip to content

Commit 346e66a

Browse files
authored
Merge pull request Azure-Samples#18 from rberlind/master
need to use StrictRedis when redis has password set
2 parents 956c718 + cec858e commit 346e66a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

azure-vote/azure-vote/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# Redis Connection
2020
try:
2121
if "REDIS_PWD" in os.environ:
22-
r = redis.Redis(host=redis_server,
22+
r = redis.StrictRedis(host=redis_server,
2323
port=6379,
2424
password=os.environ['REDIS_PWD'])
2525
else:
@@ -73,4 +73,4 @@ def index():
7373
return render_template("index.html", value1=int(vote1), value2=int(vote2), button1=button1, button2=button2, title=title)
7474

7575
if __name__ == "__main__":
76-
app.run()
76+
app.run()

0 commit comments

Comments
 (0)